Changeset f2b8cdc in mainline for uspace/lib/libc/generic/io/fprintf.c
- Timestamp:
- 2009-04-04T22:04:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b27eb71
- Parents:
- 4527fb5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/io/fprintf.c
r4527fb5 rf2b8cdc 39 39 #include <io/printf_core.h> 40 40 41 static int vfprintf_ write(const char *s, size_t count, void *f)41 static int vfprintf_str_write(const char *s, size_t size, void *f) 42 42 { 43 return fwrite(s, 1, count, (FILE *) f); 43 /* FIXME: Should return number of characters? */ 44 return fwrite(s, 1, size, (FILE *) f); 45 } 46 47 static int vfprintf_wstr_write(const char *s, size_t size, void *f) 48 { 49 /* TODO */ 50 return size; 44 51 } 45 52 … … 47 54 { 48 55 struct printf_spec ps = { 49 (int (*)(void *, size_t, void *)) vfprintf_write, 56 vfprintf_str_write, 57 vfprintf_wstr_write, 50 58 (void *) f 51 59 };
Note:
See TracChangeset
for help on using the changeset viewer.