Standard i/o library. More...
Go to the source code of this file.
Functions | |
| int | snprintf (char *buf, size_t n, const char *format,...) |
| Compose a printf-formatted string into the target buffer. More... | |
| int | vsnprintf (char *buf, size_t n, const char *format, va_list arg) |
| Compose a printf-formatted string into the target buffer using a variable argument list. More... | |
Standard i/o library.
Definition in file stdio.h.
| int snprintf | ( | char * | buf, |
| size_t | n, | ||
| const char * | format, | ||
| ... | |||
| ) |
Compose a printf-formatted string into the target buffer.
If the length of the string is greater than n-1 characters, truncate the remaining characters but return the total number of characters processed.
| [in] | buf | Pointer to a buffer where the resulting string is to be stored. |
| [in] | n | Maximum number of characters in the the buffer, including space for a null terminator. |
| [in] | format | A format-specifier string. |
| [in] | ... | A variable argument list based on the contents of the format string. |
Referenced by dump_cpuflags(), and dump_registers().
| int vsnprintf | ( | char * | buf, |
| size_t | n, | ||
| const char * | format, | ||
| va_list | arg | ||
| ) |
Compose a printf-formatted string into the target buffer using a variable argument list.
If the length of the string is greater than n-1 characters, truncate the remaining characters but return the total number of characters processed.
| [in] | buf | Pointer to a buffer where the resulting string is to be stored. |
| [in] | n | Maximum number of characters in the the buffer, including space for a null terminator. |
| [in] | format | A format-specifier string. |
| [in] | arg | Variable arguments list to be initialized with va_start. |
Referenced by logvf(), and tty_printf().