Changeset f2b8cdc in mainline for uspace/lib/libc/include/io/printf_core.h
- 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/include/io/printf_core.h
r4527fb5 rf2b8cdc 40 40 41 41 /** Structure for specifying output methods for different printf clones. */ 42 struct printf_spec { 43 /* Output function, returns count of printed characters or EOF */ 44 int (*write)(void *, size_t, void *); 45 /* Support data - output stream specification, its state, locks,... */ 42 typedef struct printf_spec { 43 /* String output function, returns number of printed characters or EOF */ 44 int (*str_write)(const char *, size_t, void *); 45 46 /* Wide string output function, returns number of printed characters or EOF */ 47 int (*wstr_write)(const wchar_t *, size_t, void *); 48 49 /* User data - output stream specification, state, locks, etc. */ 46 50 void *data; 51 } printf_spec_t; 47 52 48 }; 49 50 int printf_core(const char *fmt, struct printf_spec *ps ,va_list ap); 53 int printf_core(const char *fmt, printf_spec_t *ps, va_list ap); 51 54 52 55 #endif
Note:
See TracChangeset
for help on using the changeset viewer.