1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# 7.19 Input/output <stdio.h>
# deprecated cimports for backwards compatibility:
from libc.string cimport const_char, const_void
cdef extern from "<stdio.h>" nogil:
ctypedef struct FILE
cdef FILE *stdin
cdef FILE *stdout
cdef FILE *stderr
enum: FOPEN_MAX
enum: FILENAME_MAX
FILE *fopen (const char *filename, const char *opentype)
FILE *freopen (const char *filename, const char *opentype, FILE *stream)
FILE *fdopen (int fdescriptor, const char *opentype)
int fclose (FILE *stream)
int remove (const char *filename)
int rename (const char *oldname, const char *newname)
FILE *tmpfile ()
int remove (const char *pathname)
int rename (const char *oldpath, const char *newpath)
enum: _IOFBF
enum: _IOLBF
enum: _IONBF
int setvbuf (FILE *stream, char *buf, int mode, size_t size)
enum: BUFSIZ
void setbuf (FILE *stream, char *buf)
size_t fread (void *data, size_t size, size_t count, FILE *stream)
size_t fwrite (const void *data, size_t size, size_t count, FILE *stream)
int fflush (FILE *stream)
enum: EOF
void clearerr (FILE *stream)
int feof (FILE *stream)
int ferror (FILE *stream)
enum: SEEK_SET
enum: SEEK_CUR
enum: SEEK_END
int fseek (FILE *stream, long int offset, int whence)
void rewind (FILE *stream)
long int ftell (FILE *stream)
ctypedef struct fpos_t
ctypedef const fpos_t const_fpos_t "const fpos_t"
int fgetpos (FILE *stream, fpos_t *position)
int fsetpos (FILE *stream, const fpos_t *position)
int scanf (const char *template, ...)
int sscanf (const char *s, const char *template, ...)
int fscanf (FILE *stream, const char *template, ...)
int printf (const char *template, ...)
int sprintf (char *s, const char *template, ...)
int snprintf (char *s, size_t size, const char *template, ...)
int fprintf (FILE *stream, const char *template, ...)
void perror (const char *message)
char *gets (char *s)
char *fgets (char *s, int count, FILE *stream)
int getchar ()
int fgetc (FILE *stream)
int getc (FILE *stream)
int ungetc (int c, FILE *stream)
int puts (const char *s)
int fputs (const char *s, FILE *stream)
int putchar (int c)
int fputc (int c, FILE *stream)
int putc (int c, FILE *stream)
size_t getline(char **lineptr, size_t *n, FILE *stream)
|