File: snprintf.h

package info (click to toggle)
sam2p 0.49.2-3%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 3,084 kB
  • sloc: cpp: 14,410; ansic: 9,011; tcl: 973; sh: 692; makefile: 157; xml: 100; perl: 67
file content (26 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * snprintf.h -- interface for our fixup vsnprintf() etc. functions
 */

#ifndef SNPRINTF_H
#define SNPRINTF_H 1

#ifdef __GNUC__
#pragma interface
#endif

#include "config2.h"
#include <stdarg.h> /* ... */
#ifndef __cplusplus
#  define EXTERN_C extern
#else
#  define EXTERN_C extern "C"
#endif

EXTERN_C slen_t fixup_vsnprintf(char *str, slen_t count, PTS_const char *fmt, va_list args);
EXTERN_C slen_t fixup_snprintf(char *str,slen_t count,PTS_const char *fmt,...);
EXTERN_C slen_t fixup_vasprintf(char **ptr, PTS_const char *format, va_list ap);
EXTERN_C slen_t fixup_asprintf(char **ptr, PTS_const char *format, ...);
EXTERN_C slen_t fixup_sprintf(char *ptr, PTS_const char *format, ...);

#endif /* snprintf.h */