vuprintf does not belong in stdio.h, causes problems with other versions of stdio.h
[kugel-rb.git] / firmware / libc / include / stdio.h
blob14f531fad18cb8baa73aaeab7d854f236d9ca5cd
1 #ifndef _STDIO_H_
2 #define _STDIO_H_
4 #include <_ansi.h>
6 #define __need_size_t
7 #include <stddef.h>
9 #define __need___va_list
10 #include <stdarg.h>
12 #ifndef NULL
13 #define NULL 0
14 #endif
16 #define EOF (-1)
18 #ifndef SEEK_SET
19 #define SEEK_SET 0 /* set file offset to offset */
20 #endif
21 #ifndef SEEK_CUR
22 #define SEEK_CUR 1 /* set file offset to current plus offset */
23 #endif
24 #ifndef SEEK_END
25 #define SEEK_END 2 /* set file offset to EOF plus offset */
26 #endif
28 #define TMP_MAX 26
30 #ifdef __GNUC__
31 #define __VALIST __gnuc_va_list
32 #else
33 #define __VALIST char*
34 #endif
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 int sscanf(const char *s, const char *fmt, ...)
44 ATTRIBUTE_SCANF(2, 3);
46 #ifdef SIMULATOR
47 typedef void FILE;
48 int vfprintf(FILE *stream, const char *format, __VALIST ap);
49 #ifdef WIN32
50 #define FILENAME_MAX 260 /* ugly hard-coded value of a limit that is set
51 in file.h */
52 #endif
53 #endif
55 #endif /* _STDIO_H_ */