33 lines
672 B
C
33 lines
672 B
C
#ifndef SOCKS_STDIO_H_
|
|
#define SOCKS_STDIO_H_
|
|
|
|
#include <stdarg.h>
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define printf printf_
|
|
int printf_(const char *format, ...);
|
|
|
|
#define sprintf sprintf_
|
|
int sprintf_(char *buffer, const char *format, ...);
|
|
|
|
#define snprintf snprintf_
|
|
#define vsnprintf vsnprintf_
|
|
int snprintf_(char *buffer, size_t count, const char *format, ...);
|
|
int vsnprintf_(char *buffer, size_t count, const char *format, va_list va);
|
|
|
|
#define vprintf vprintf_
|
|
int vprintf_(const char *format, va_list va);
|
|
|
|
int fctprintf(void (*out)(char character, void *arg), void *arg, const char*format, ...);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|