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 28... | Line 28... | ||
| 28 | 28 | ||
| 29 | #include <stdarg.h> |
29 | #include <stdarg.h> |
| 30 | #include <stdio.h> |
30 | #include <stdio.h> |
| 31 | #include <io/printf_core.h> |
31 | #include <io/printf_core.h> |
| 32 | 32 | ||
| - | 33 | /** Print formatted to the given buffer with limited size. |
|
| - | 34 | * @param str buffer |
|
| - | 35 | * @param size buffer size |
|
| - | 36 | * @param fmt format string |
|
| - | 37 | * \see For more details about format string see printf_core. |
|
| - | 38 | */ |
|
| 33 | int snprintf(char *str, size_t size, const char *fmt, ...) |
39 | int snprintf(char *str, size_t size, const char *fmt, ...) |
| 34 | { |
40 | { |
| 35 | int ret; |
41 | int ret; |
| 36 | va_list args; |
42 | va_list args; |
| 37 | 43 | ||