/[osn-commons]/trunk/plibc/lib/stdio.h
ViewVC logotype

Diff of /trunk/plibc/lib/stdio.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by rakinar2, Thu Aug 15 18:10:51 2024 UTC revision 51 by rakinar2, Fri Aug 16 18:34:43 2024 UTC
# Line 2  Line 2 
2  #define PLIBC_STDIO_H  #define PLIBC_STDIO_H
3    
4  #include "format.h"  #include "format.h"
5    #include "stddef.h"
6    
7    #define EOF (-1)
8    
9    typedef struct
10    {
11        int fd;
12        void *buf;
13        size_t buf_size;
14        int mode;
15    } FILE;
16    
17  extern int printf (const char *fmt, ...)  extern int printf (const char *fmt, ...)
18      __attribute__ ((format (printf, 1, 2)));      __attribute__ ((format (printf, 1, 2)));
19    
20  int puts (const char *str);  int puts (const char *str);
21  int putsnl (const char *str);  int putsnl (const char *str);
22  extern int putchar (int c);  int putchar (int c);
23    
24    FILE *fopen (const char *pathname, const char *mode);
25    size_t fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream);
26    int fclose (FILE *stream);
27    int fflush (FILE *stream);
28    int fputs (const char *str, FILE *stream);
29    FILE *fdopen (int fd, const char *mode);
30    
31  #endif /* PLIBC_STDIO_H */  #endif /* PLIBC_STDIO_H */

Legend:
Removed from v.50  
changed lines
  Added in v.51

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26