File: vsnprintf.c

package info (click to toggle)
coda 2.25.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,168 kB
  • sloc: ansic: 121,489; javascript: 6,788; java: 2,369; python: 1,695; yacc: 1,007; makefile: 598; lex: 204; sh: 105; fortran: 60; xml: 5
file content (15 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdarg.h>
#include <string.h>

int vsnprintf(const *str, size_t size, const char *format, va_list ap)
{
    /* For systems that don't support the safe vsnprintf we just use the
     * unsafe variant.
     * A clean alternative is unfortunately not easy to realize.
     */
    return vsprintf(str, format, ap);
}