File: vsprintf.h

package info (click to toggle)
sms-pl 1.9.2m-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 620 kB
  • ctags: 355
  • sloc: cpp: 2,143; ansic: 1,046; perl: 272; makefile: 113; sh: 97
file content (17 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __vsprintf_h
#define __vsprintf_h

#include <stdarg.h>

extern "C" {
int snprintf (char *str, size_t count, const char *fmt, ...);
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
}

#ifdef NO_VSPRINTF
#define VSPRINTF(buf, size, fmt, arg) vsprintf((buf),(fmt),(arg))
#else
#define VSPRINTF(buf, size, fmt, arg) vsnprintf((buf),(size),(fmt),(args))
#endif

#endif