Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
71 theseven 1
#ifndef _STDIO_H_
2
#define _STDIO_H_
3
 
111 theseven 4
#include "../../global.h"
114 theseven 5
#include "_ansi.h"
71 theseven 6
 
7
#define __need_size_t
8
#include <stddef.h>
9
 
10
#define __need___va_list
11
#include <stdarg.h>
12
 
13
#ifndef NULL
14
#define NULL    0
15
#endif
16
 
17
#define EOF     (-1)
18
 
19
#ifndef SEEK_SET
20
#define SEEK_SET        0       /* set file offset to offset */
21
#endif
22
#ifndef SEEK_CUR
23
#define SEEK_CUR        1       /* set file offset to current plus offset */
24
#endif
25
#ifndef SEEK_END
26
#define SEEK_END        2       /* set file offset to EOF plus offset */
27
#endif
28
 
29
#define TMP_MAX         26
30
 
31
#ifdef __GNUC__
32
#define __VALIST __gnuc_va_list
33
#else
34
#define __VALIST char*
35
#endif
36
 
37
int vsnprintf (char *buf, size_t size, const char *fmt, __VALIST ap);
38
 
39
int sprintf  (char *buf, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
40
 
41
int snprintf (char *buf, size_t size, const char *fmt, ...)
42
              ATTRIBUTE_PRINTF(3, 4);
43
 
44
int sscanf(const char *s, const char *fmt, ...)
45
    ATTRIBUTE_SCANF(2, 3);
46
 
47
#endif /* _STDIO_H_ */