Changeset 1433ecda in mainline for uspace/lib/posix/src/stdio/scanf.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/stdio/scanf.c
r47b2d7e3 r1433ecda 95 95 int (*undo)(struct __input_provider *); 96 96 /** Lend the cursor to the caller. */ 97 const char * 97 const char *(*borrow_cursor)(struct __input_provider *); 98 98 /** Take control over possibly incremented cursor and update the internal 99 99 * structures if necessary. */ … … 1001 1001 } 1002 1002 1003 char * 1003 char *buf = NULL; 1004 1004 size_t buf_size = 0; 1005 char * 1005 char *cur = NULL; 1006 1006 size_t alloc_step = 80; /* Buffer size gain during reallocation. */ 1007 1007 int my_buffer_idx = 0; … … 1216 1216 { 1217 1217 _input_provider provider = { 1218 1219 1220 1218 { 0 }, 0, 0, NULL, 0, NULL, _PROV_CONSTRUCTED, 1219 _capture_stream, _pop_stream, _undo_stream, 1220 _borrow_cursor_universal, _return_cursor_stream, _release_stream 1221 1221 }; 1222 1222 provider.source.stream = stream; … … 1236 1236 { 1237 1237 _input_provider provider = { 1238 1239 1240 1238 { 0 }, 0, 0, NULL, 0, NULL, _PROV_CONSTRUCTED, 1239 _capture_string, _pop_string, _undo_string, 1240 _borrow_cursor_universal, _return_cursor_string, _release_string 1241 1241 }; 1242 1242 provider.source.string = s;
Note:
See TracChangeset
for help on using the changeset viewer.