File: snprintf.c

package info (click to toggle)
rlinetd 0.9.3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,992 kB
  • sloc: sh: 5,173; ansic: 3,212; yacc: 1,585; makefile: 170; lex: 131; sed: 16; perl: 4
file content (12 lines) | stat: -rw-r--r-- 228 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>

#include <config.h>

int snprintf(char *buf, size_t size, const char *format, ...) {
	va_list argp;

	va_start(argp, format);
	return vsprintf(buf, format, argp);
}