Rev 1234 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1234 | Rev 1623 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | int vprintf_write(const char *str, size_t count, void *unused) |
36 | int vprintf_write(const char *str, size_t count, void *unused) |
37 | { |
37 | { |
38 | return write(1, str, count); |
38 | return write(1, str, count); |
39 | } |
39 | } |
40 | 40 | ||
- | 41 | /** Print formatted text. |
|
- | 42 | * @param fmt format string |
|
- | 43 | * @param ap format parameters |
|
- | 44 | * \see For more details about format string see printf_core. |
|
- | 45 | */ |
|
41 | int vprintf(const char *fmt, va_list ap) |
46 | int vprintf(const char *fmt, va_list ap) |
42 | { |
47 | { |
43 | struct printf_spec ps = {(int(*)(void *, size_t, void *))vprintf_write, NULL}; |
48 | struct printf_spec ps = {(int(*)(void *, size_t, void *))vprintf_write, NULL}; |
44 | return printf_core(fmt, &ps, ap); |
49 | return printf_core(fmt, &ps, ap); |
45 | 50 |