Changes in uspace/app/sbi/src/input.c [9d58539:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/input.c
r9d58539 rb7fd2a0 45 45 #define INPUT_BUFFER_SIZE 256 46 46 47 static int input_init_file(input_t *input, const char *fname);47 static errno_t input_init_file(input_t *input, const char *fname); 48 48 static void input_init_interactive(input_t *input); 49 49 static void input_init_string(input_t *input, const char *str); … … 57 57 * ENOENT when opening file fails. 58 58 */ 59 int input_new_file(input_t **input, const char *fname)59 errno_t input_new_file(input_t **input, const char *fname) 60 60 { 61 61 *input = malloc(sizeof(input_t)); … … 71 71 * @return EOK on success, ENOMEM when allocation fails. 72 72 */ 73 int input_new_interactive(input_t **input)73 errno_t input_new_interactive(input_t **input) 74 74 { 75 75 *input = malloc(sizeof(input_t)); … … 87 87 * @return EOK on success, ENOMEM when allocation fails. 88 88 */ 89 int input_new_string(input_t **input, const char *str)89 errno_t input_new_string(input_t **input, const char *str) 90 90 { 91 91 *input = malloc(sizeof(input_t)); … … 104 104 * @return EOK on success, ENOENT when opening file fails. 105 105 */ 106 static int input_init_file(input_t *input, const char *fname)106 static errno_t input_init_file(input_t *input, const char *fname) 107 107 { 108 108 FILE *f; … … 174 174 * @return EOK on success, EIO on failure. 175 175 */ 176 int input_get_line(input_t *input, char **line)176 errno_t input_get_line(input_t *input, char **line) 177 177 { 178 178 const char *prompt;
Note:
See TracChangeset
for help on using the changeset viewer.