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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations)
Fri Aug 16 18:34:43 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-c
File size: 652 byte(s)
feat: add basic utilities and more system calls

1 #ifndef PLIBC_STDIO_H
2 #define PLIBC_STDIO_H
3
4 #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, ...)
18 __attribute__ ((format (printf, 1, 2)));
19
20 int puts (const char *str);
21 int putsnl (const char *str);
22 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 */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26