mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-04-20 18:07:05 +02:00
17 lines
521 B
C
17 lines
521 B
C
#include <stdio.h>
|
|
|
|
/*
|
|
** sprintf(), snprintf(), vsprintf() and vsnprintf() write the output under the
|
|
** control of a format string that specifies how subsequent arguments (or
|
|
** arguments accessed via the variable-length argument facilities of stdarg(3))
|
|
** are converted for output then write to the character string str.
|
|
*/
|
|
int snprintf(char *restrict str, size_t size, const char *restrict format, ...)
|
|
{
|
|
va_list ap;
|
|
|
|
va_start(ap, format);
|
|
size = vsnprintf(str, size, format, ap);
|
|
va_end(ap);
|
|
return (size);
|
|
}
|