diff options
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/snprintf.c')
-rw-r--r-- | contrib/syslinux-4.02/com32/lib/snprintf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/snprintf.c b/contrib/syslinux-4.02/com32/lib/snprintf.c new file mode 100644 index 0000000..304bab4 --- /dev/null +++ b/contrib/syslinux-4.02/com32/lib/snprintf.c @@ -0,0 +1,16 @@ +/* + * snprintf.c + */ + +#include <stdio.h> + +int snprintf(char *buffer, size_t n, const char *format, ...) +{ + va_list ap; + int rv; + + va_start(ap, format); + rv = vsnprintf(buffer, n, format, ap); + va_end(ap); + return rv; +} |