9 #define __need___va_list
19 #define SEEK_SET 0 /* set file offset to offset */
22 #define SEEK_CUR 1 /* set file offset to current plus offset */
25 #define SEEK_END 2 /* set file offset to EOF plus offset */
31 #define __VALIST __gnuc_va_list
33 #define __VALIST char*
36 int vsnprintf (char *buf
, size_t size
, const char *fmt
, __VALIST ap
);
38 int sprintf (char *buf
, const char *fmt
, ...) ATTRIBUTE_PRINTF(2, 3);
40 int snprintf (char *buf
, size_t size
, const char *fmt
, ...)
41 ATTRIBUTE_PRINTF(3, 4);
43 /* callback function is called for every output character (byte) with userp and
44 * should return 0 when ch is a char other than '\0' that should stop printing */
45 int vuprintf(int (*push
)(void *userp
, unsigned char data
),
46 void *userp
, const char *fmt
, __VALIST ap
);
48 int sscanf(const char *s
, const char *fmt
, ...)
49 ATTRIBUTE_SCANF(2, 3);
53 int vfprintf(FILE *stream
, const char *format
, __VALIST ap
);
55 #define FILENAME_MAX 260 /* ugly hard-coded value of a limit that is set
60 #endif /* _STDIO_H_ */