view nasmbuild/nasm-2.13rc9/stdlib/snprintf.c @ 10656:d14f0b444087

<oerjan> ` cd wisdom; mv {\xc3\x84,\xc3\xa4}; mv \'{\xc3\x85,\xc3\xa5}\'
author HackBot
date Thu, 13 Apr 2017 03:46:40 +0000
parents 587a0a262d22
children
line wrap: on
line source

/*
 * snprintf()
 *
 * Implement snprintf() in terms of vsnprintf()
 */

#include "compiler.h"

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

#include "nasmlib.h"

#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)

int snprintf(char *str, size_t size, const char *format, ...)
{
    va_list ap;
    int rv;

    va_start(ap, format);
    rv = vsnprintf(str, size, format, ap);
    va_end(ap);

    return rv;
}

#endif