blob: 104a53a93987b6ab7115a26fe68d724dc126aff8 (
plain)
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
27
28
29
30
31
32
33
|
#ifdef WIN32
#ifndef roundup
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
#endif
#include <stdlib.h>
#include <stdarg.h>
int
#if __STDC__
vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#else
vsnprintf(str, n, fmt, ap);
char *str;
size_t n;
char *fmt;
char *ap;
#endif
int
#if __STDC__
snprintf(char *str, size_t n, char const *fmt, ...);
#else
snprintf(str, n, fmt, va_alist);
char *str;
size_t n;
char *fmt;
va_dcl
#endif
#endif
|