2002-06-15 15:49:32 +00:00
|
|
|
#ifndef _STDIO_H_
|
|
|
|
#define _STDIO_H_
|
|
|
|
|
2002-06-17 13:19:18 +00:00
|
|
|
#include <_ansi.h>
|
|
|
|
|
2002-06-15 15:49:32 +00:00
|
|
|
#define __need_size_t
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#define __need___va_list
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EOF (-1)
|
|
|
|
|
|
|
|
#ifndef SEEK_SET
|
|
|
|
#define SEEK_SET 0 /* set file offset to offset */
|
|
|
|
#endif
|
|
|
|
#ifndef SEEK_CUR
|
|
|
|
#define SEEK_CUR 1 /* set file offset to current plus offset */
|
|
|
|
#endif
|
|
|
|
#ifndef SEEK_END
|
|
|
|
#define SEEK_END 2 /* set file offset to EOF plus offset */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define TMP_MAX 26
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define __VALIST __gnuc_va_list
|
|
|
|
#else
|
|
|
|
#define __VALIST char*
|
|
|
|
#endif
|
|
|
|
|
2002-06-17 13:19:18 +00:00
|
|
|
int snprintf (char *buf, size_t size, const char *fmt, ...);
|
|
|
|
int vsnprintf (char *buf, int size, const char *fmt, __VALIST ap);
|
2002-06-15 15:49:32 +00:00
|
|
|
|
|
|
|
#endif /* _STDIO_H_ */
|