From Jason Turner

[cstdio.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpwi67bcew/{from.md → to.md} +84 -0
tmp/tmpwi67bcew/{from.md → to.md} RENAMED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Header `<cstdio>` synopsis <a id="cstdio.syn">[[cstdio.syn]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ using size_t = see [support.types.layout];
6
+ using FILE = see below;
7
+ using fpos_t = see below;
8
+ }
9
+
10
+ #define NULL see [support.types.nullptr]
11
+ #define _IOFBF see below
12
+ #define _IOLBF see below
13
+ #define _IONBF see below
14
+ #define BUFSIZ see below
15
+ #define EOF see below
16
+ #define FOPEN_MAX see below
17
+ #define FILENAME_MAX see below
18
+ #define L_tmpnam see below
19
+ #define SEEK_CUR see below
20
+ #define SEEK_END see below
21
+ #define SEEK_SET see below
22
+ #define TMP_MAX see below
23
+ #define stderr see below
24
+ #define stdin see below
25
+ #define stdout see below
26
+
27
+ namespace std {
28
+ int remove(const char* filename);
29
+ int rename(const char* old, const char* new);
30
+ FILE* tmpfile();
31
+ char* tmpnam(char* s);
32
+ int fclose(FILE* stream);
33
+ int fflush(FILE* stream);
34
+ FILE* fopen(const char* filename, const char* mode);
35
+ FILE* freopen(const char* filename, const char* mode, FILE* stream);
36
+ void setbuf(FILE* stream, char* buf);
37
+ int setvbuf(FILE* stream, char* buf, int mode, size_t size);
38
+ int fprintf(FILE* stream, const char* format, ...);
39
+ int fscanf(FILE* stream, const char* format, ...);
40
+ int printf(const char* format, ...);
41
+ int scanf(const char* format, ...);
42
+ int snprintf(char* s, size_t n, const char* format, ...);
43
+ int sprintf(char* s, const char* format, ...);
44
+ int sscanf(const char* s, const char* format, ...);
45
+ int vfprintf(FILE* stream, const char* format, va_list arg);
46
+ int vfscanf(FILE* stream, const char* format, va_list arg);
47
+ int vprintf(const char* format, va_list arg);
48
+ int vscanf(const char* format, va_list arg);
49
+ int vsnprintf(char* s, size_t n, const char* format, va_list arg);
50
+ int vsprintf(char* s, const char* format, va_list arg);
51
+ int vsscanf(const char* s, const char* format, va_list arg);
52
+ int fgetc(FILE* stream);
53
+ char* fgets(char* s, int n, FILE* stream);
54
+ int fputc(int c, FILE* stream);
55
+ int fputs(const char* s, FILE* stream);
56
+ int getc(FILE* stream);
57
+ int getchar();
58
+ int putc(int c, FILE* stream);
59
+ int putchar(int c);
60
+ int puts(const char* s);
61
+ int ungetc(int c, FILE* stream);
62
+ size_t fread(void* ptr, size_t size, size_t nmemb, FILE* stream);
63
+ size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream);
64
+ int fgetpos(FILE* stream, fpos_t* pos);
65
+ int fseek(FILE* stream, long int offset, int whence);
66
+ int fsetpos(FILE* stream, const fpos_t* pos);
67
+ long int ftell(FILE* stream);
68
+ void rewind(FILE* stream);
69
+ void clearerr(FILE* stream);
70
+ int feof(FILE* stream);
71
+ int ferror(FILE* stream);
72
+ void perror(const char* s);
73
+ }
74
+ ```
75
+
76
+ The contents and meaning of the header `<cstdio>` are the same as the C
77
+ standard library header `<stdio.h>`.
78
+
79
+ Calls to the function `tmpnam` with an argument that is a null pointer
80
+ value may introduce a data race ([[res.on.data.races]]) with other
81
+ calls to `tmpnam` with an argument that is a null pointer value.
82
+
83
+ ISO C 7.21.
84
+