Changeset 3dbe2d1f in mainline for uspace/libc/generic/io/vsnprintf.c
- Timestamp:
- 2007-04-07T18:00:18Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a98e58
- Parents:
- 5b303ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/io/vsnprintf.c
r5b303ba r3dbe2d1f 44 44 }; 45 45 46 int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data);47 48 46 /** Write string to given buffer. 49 47 * Write at most data->size characters including trailing zero. According to C99 has snprintf to return number … … 56 54 * @return number of characters to print (not characters really printed!) 57 55 */ 58 int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data)56 static int vsnprintf_write(const char *str, size_t count, struct vsnprintf_data *data) 59 57 { 60 58 size_t i; … … 98 96 { 99 97 struct vsnprintf_data data = {size, 0, str}; 100 struct printf_spec ps = {(int(*)(void *, size_t, void *)) vsnprintf_write, &data};98 struct printf_spec ps = {(int(*)(void *, size_t, void *)) vsnprintf_write, &data}; 101 99 102 100 /* Print 0 at end of string - fix the case that nothing will be printed */
Note:
See TracChangeset
for help on using the changeset viewer.