2 * @file cmdio_std_line.c
3 * @author Michal Sojka <sojkam1@fel.cvut.cz>
4 * @date Wed Jul 31 16:05:10 2013
6 * @brief cmd_io_line implementation for stdin/stdout.
12 #include "cmdio_std.h"
14 #define ED_LINE_CHARS 80
16 char ed_line_in_std[ED_LINE_CHARS+1];
17 char ed_line_out_std[ED_LINE_CHARS+1];
20 ed_line_buf_t ed_line_buf_in_std={
23 alloc:sizeof(ed_line_in_std),
29 ed_line_buf_t ed_line_buf_out_std={
32 alloc:sizeof(ed_line_out_std),
38 extern cmd_io_t cmd_io_std;
39 const cmd_io_t cmd_io_std_line={
40 putc:cmd_io_line_putc,
42 write:cmd_io_write_bychar,
46 in: &ed_line_buf_in_std,
47 out:&ed_line_buf_out_std,