File: fakesnprintf.h

package info (click to toggle)
pure-ftpd 1.0.47-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,212 kB
  • sloc: ansic: 29,132; sh: 1,632; makefile: 500; perl: 280
file content (22 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __FAKESNPRINTF_H__
#define __FAKESNPRINTF_H__ 1

#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)

int fakesnprintf_vsnprintf(char * const str_, const size_t size_,
                           const char *format, va_list va);

int fakesnprintf_snprintf(char * const str, const size_t size,
                          const char * const format, ...);

# define snprintf  fakesnprintf_snprintf
# define vsnprintf fakesnprintf_vsnprintf

# ifdef CONF_SNPRINTF_TYPE
#  undef CONF_SNPRINTF_TYPE
# endif
# define CONF_SNPRINTF_TYPE 4

#endif

#endif                            /* FAKESNPRINTF_H */