ReactOS 0.4.16-dev-2104-gb84fa49
stdio.h
Go to the documentation of this file.
1/*
2 * Standard I/O definitions.
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_STDIO_H
9#define __WINE_STDIO_H
10
11#include <corecrt_wstdio.h>
12
13/* file._flag flags */
14#ifndef _UCRT
15#define _IOREAD 0x0001
16#define _IOWRT 0x0002
17#define _IOMYBUF 0x0008
18#define _IOEOF 0x0010
19#define _IOERR 0x0020
20#define _IOSTRG 0x0040
21#define _IORW 0x0080
22#endif
23
24#define STDIN_FILENO 0
25#define STDOUT_FILENO 1
26#define STDERR_FILENO 2
27
28/* more file._flag flags, but these conflict with Unix */
29#define _IOFBF 0x0000
30#define _IONBF 0x0004
31#define _IOLBF 0x0040
32
33#define EOF (-1)
34#define FILENAME_MAX 260
35#define TMP_MAX 0x7fff
36#define TMP_MAX_S 0x7fffffff
37#define FOPEN_MAX 20
38#define L_tmpnam 260
39
40#define BUFSIZ 512
41
42#ifndef SEEK_SET
43#define SEEK_SET 0
44#define SEEK_CUR 1
45#define SEEK_END 2
46#endif
47
48#ifndef _FPOS_T_DEFINED
50#define _FPOS_T_DEFINED
51#endif
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57#ifndef _STDIO_DEFINED
58# ifdef __i386__
59_ACRTIMP FILE* __cdecl __p__iob(void);
60# define _iob (__p__iob())
61# else
63# define _iob (__iob_func())
64# endif
65#endif /* _STDIO_DEFINED */
66
67/* return value for _get_output_format */
68#define _TWO_DIGIT_EXPONENT 0x1
69
70#ifndef _STDIO_DEFINED
71#define _STDIO_DEFINED
73_ACRTIMP FILE* __cdecl _fdopen(int,const char*);
74_ACRTIMP int __cdecl _fgetchar(void);
78_ACRTIMP int __cdecl _flushall(void);
80_ACRTIMP FILE* __cdecl _fsopen(const char*,const char*,int);
85_ACRTIMP FILE* __cdecl _popen(const char*,const char*);
86_ACRTIMP int __cdecl _putw(int,FILE*);
87_ACRTIMP int __cdecl _rmtmp(void);
90_ACRTIMP char* __cdecl _tempnam(const char*,const char*);
91_ACRTIMP int __cdecl _unlink(const char*);
92
95_ACRTIMP size_t __cdecl _fread_nolock(void*,size_t,size_t,FILE*);
96_ACRTIMP size_t __cdecl _fread_nolock_s(void*,size_t,size_t,size_t,FILE*);
97_ACRTIMP size_t __cdecl _fwrite_nolock(const void*,size_t,size_t,FILE*);
109
118_ACRTIMP char* __cdecl fgets(char*,int,FILE*);
119_ACRTIMP FILE* __cdecl fopen(const char*,const char*);
120_ACRTIMP errno_t __cdecl fopen_s(FILE**,const char*,const char*);
121_ACRTIMP int __cdecl fputc(int,FILE*);
122_ACRTIMP int __cdecl fputs(const char*,FILE*);
123_ACRTIMP size_t __cdecl fread(void*,size_t,size_t,FILE*);
124_ACRTIMP size_t __cdecl fread_s(void*,size_t,size_t,size_t,FILE*);
125_ACRTIMP FILE* __cdecl freopen(const char*,const char*,FILE*);
126_ACRTIMP errno_t __cdecl freopen_s(FILE**,const char*,const char*,FILE*);
132_ACRTIMP size_t __cdecl fwrite(const void*,size_t,size_t,FILE*);
134_ACRTIMP int __cdecl getchar(void);
135_ACRTIMP char* __cdecl gets(char*);
136_ACRTIMP void __cdecl perror(const char*);
137_ACRTIMP int __cdecl putc(int,FILE*);
138_ACRTIMP int __cdecl putchar(int);
139_ACRTIMP int __cdecl puts(const char*);
140_ACRTIMP int __cdecl remove(const char*);
141_ACRTIMP int __cdecl rename(const char*,const char*);
143_ACRTIMP void __cdecl setbuf(FILE*,char*);
144_ACRTIMP int __cdecl setvbuf(FILE*,char*,int,size_t);
146_ACRTIMP char* __cdecl tmpnam(char*);
147_ACRTIMP int __cdecl ungetc(int,FILE*);
148_ACRTIMP unsigned int __cdecl _get_output_format(void);
149_ACRTIMP unsigned int __cdecl _set_output_format(unsigned int);
150
151#ifdef _UCRT
152
155_ACRTIMP int __cdecl __stdio_common_vsprintf(unsigned __int64,char*,size_t,const char*,_locale_t,va_list);
156_ACRTIMP int __cdecl __stdio_common_vsprintf_p(unsigned __int64,char*,size_t,const char*,_locale_t,va_list);
157_ACRTIMP int __cdecl __stdio_common_vsprintf_s(unsigned __int64,char*,size_t,const char*,_locale_t,va_list);
158_ACRTIMP int __cdecl __stdio_common_vsnprintf_s(unsigned __int64,char*,size_t,size_t,const char*,_locale_t,va_list);
159
161_ACRTIMP int __cdecl __stdio_common_vsscanf(unsigned __int64,char const*,size_t,const char*,_locale_t,va_list);
162
163#endif /* _UCRT */
164
165#if defined(_UCRT) && !defined(_NO_CRT_STDIO_INLINE)
166
167static inline int __cdecl vsnprintf(char *buffer, size_t size, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(3, 0);
168static inline int __cdecl vsnprintf(char *buffer, size_t size, const char *format, va_list args)
169{
172 return ret < 0 ? -1 : ret;
173}
174
175static inline int __cdecl _vsnprintf(char *buffer, size_t size, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(3, 0);
176static inline int __cdecl _vsnprintf(char *buffer, size_t size, const char *format, va_list args)
177{
180 return ret < 0 ? -1 : ret;
181}
182
183static inline int __cdecl _vsnprintf_s(char *buffer, size_t size, size_t count, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(4, 0);
184static inline int __cdecl _vsnprintf_s(char *buffer, size_t size, size_t count, const char *format, va_list args)
185{
187 return ret < 0 ? -1 : ret;
188}
189
190static inline int __cdecl _snprintf_s(char *buffer, size_t size, size_t count, const char *format, ...) __WINE_CRT_PRINTF_ATTR(4, 5);
191static inline int __cdecl _snprintf_s(char *buffer, size_t size, size_t count, const char *format, ...)
192{
193 int ret;
195
198 va_end(args);
199 return ret;
200}
201
202static inline int __cdecl _vscprintf(const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(1, 0);
203static inline int __cdecl _vscprintf(const char *format, va_list args)
204{
206 NULL, 0, format, NULL, args);
207 return ret < 0 ? -1 : ret;
208}
209
210static inline int __cdecl _scprintf(const char *format, ...) __WINE_CRT_PRINTF_ATTR(1, 2);
211static inline int __cdecl _scprintf(const char *format, ...)
212{
213 int ret;
215
218 NULL, 0, format, NULL, args);
219 va_end(args);
220 return ret;
221}
222
223static inline int __cdecl vsprintf(char *buffer, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(2, 0);
224static inline int __cdecl vsprintf(char *buffer, const char *format, va_list args)
225{
227 buffer, -1, format, NULL, args);
228 return ret < 0 ? -1 : ret;
229}
230
231static inline int __cdecl vsprintf_s(char *buffer, size_t size, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(3, 0);
232static inline int __cdecl vsprintf_s(char *buffer, size_t size, const char *format, va_list args)
233{
235 return ret < 0 ? -1 : ret;
236}
237
238static inline int __cdecl sprintf_s(char *buffer, size_t size, const char *format, ...) __WINE_CRT_PRINTF_ATTR(3, 4);
239static inline int __cdecl sprintf_s(char *buffer, size_t size, const char *format, ...)
240{
241 int ret;
243
246 va_end(args);
247 return ret;
248}
249
250static inline int __cdecl _vsprintf_p_l(char *buffer, size_t size, const char *format, _locale_t locale, va_list args) __WINE_CRT_PRINTF_ATTR(3, 0);
251static inline int __cdecl _vsprintf_p_l(char *buffer, size_t size, const char *format, _locale_t locale, va_list args)
252{
254 return ret < 0 ? -1 : ret;
255}
256
257static inline int __cdecl vfprintf(FILE *file, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(2, 0);
258static inline int __cdecl vfprintf(FILE *file, const char *format, va_list args)
259{
261}
262
263static inline int __cdecl fprintf(FILE *file, const char *format, ...) __WINE_CRT_PRINTF_ATTR(2, 3);
264static inline int __cdecl fprintf(FILE *file, const char *format, ...)
265{
266 int ret;
268
271 va_end(args);
272 return ret;
273}
274
275static inline int __cdecl vfprintf_s(FILE *file, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(2, 0);
276static inline int __cdecl vfprintf_s(FILE *file, const char *format, va_list args)
277{
279}
280
281static inline int __cdecl fprintf_s(FILE *file, const char *format, ...) __WINE_CRT_PRINTF_ATTR(2, 3);
282static inline int __cdecl fprintf_s(FILE *file, const char *format, ...)
283{
284 int ret;
286
289 va_end(args);
290 return ret;
291}
292
293static inline int vprintf(const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(1, 0);
294static inline int vprintf(const char *format, va_list args)
295{
297}
298
299static inline int __cdecl printf(const char *format, ...) __WINE_CRT_PRINTF_ATTR(1, 2);
300static inline int __cdecl printf(const char *format, ...)
301{
302 int ret;
304
307 va_end(args);
308 return ret;
309}
310
311static inline int vprintf_s(const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(1, 0);
312static inline int vprintf_s(const char *format, va_list args)
313{
315}
316
317static inline int __cdecl printf_s(const char *format, ...) __WINE_CRT_PRINTF_ATTR(1, 2);
318static inline int __cdecl printf_s(const char *format, ...)
319{
320 int ret;
322
325 va_end(args);
326 return ret;
327}
328
329static inline int __cdecl _sprintf_l(char *buffer, const char *format, _locale_t locale, ...) __WINE_CRT_PRINTF_ATTR(2, 4);
330static inline int __cdecl _sprintf_l(char *buffer, const char *format, _locale_t locale, ...)
331{
332 int ret;
334
337 buffer, -1, format, locale, args);
338 va_end(args);
339 return ret < 0 ? -1 : ret;
340}
341
342static inline int __cdecl sscanf(const char *buffer, const char *format, ...) __WINE_CRT_SCANF_ATTR(2, 3);
343static inline int __cdecl sscanf(const char *buffer, const char *format, ...)
344{
345 int ret;
347
350 va_end(args);
351 return ret;
352}
353
354static inline int __cdecl sscanf_s(const char *buffer, const char *format, ...) __WINE_CRT_SCANF_ATTR(2, 3);
355static inline int __cdecl sscanf_s(const char *buffer, const char *format, ...)
356{
357 int ret;
359
362 va_end(args);
363 return ret;
364}
365
366static inline int __cdecl _snscanf_l(const char *buffer, size_t size, const char *format, _locale_t locale, ...) __WINE_CRT_SCANF_ATTR(3, 5);
367static inline int __cdecl _snscanf_l(const char *buffer, size_t size, const char *format, _locale_t locale, ...)
368{
369 int ret;
371
374 va_end(args);
375 return ret;
376}
377
378static inline int __cdecl _sscanf_l(const char *buffer, const char *format, _locale_t locale, ...) __WINE_CRT_SCANF_ATTR(2, 4);
379static inline int __cdecl _sscanf_l(const char *buffer, const char *format, _locale_t locale, ...)
380{
381 int ret;
383
386 va_end(args);
387 return ret;
388}
389
390static inline int __cdecl fscanf(FILE *file, const char *format, ...) __WINE_CRT_SCANF_ATTR(2, 3);
391static inline int __cdecl fscanf(FILE *file, const char *format, ...)
392{
393 int ret;
395
398 va_end(args);
399 return ret;
400}
401
402static inline int __cdecl fscanf_s(FILE *file, const char *format, ...) __WINE_CRT_SCANF_ATTR(2, 3);
403static inline int __cdecl fscanf_s(FILE *file, const char *format, ...)
404{
405 int ret;
407
410 va_end(args);
411 return ret;
412}
413
414static inline int __cdecl scanf(const char *format, ...) __WINE_CRT_SCANF_ATTR(1, 2);
415static inline int __cdecl scanf(const char *format, ...)
416{
417 int ret;
419
422 va_end(args);
423 return ret;
424}
425
426static inline int __cdecl scanf_s(const char *format, ...) __WINE_CRT_SCANF_ATTR(1, 2);
427static inline int __cdecl scanf_s(const char *format, ...)
428{
429 int ret;
431
434 va_end(args);
435 return ret;
436}
437
438#else /* _UCRT && !_NO_CRT_STDIO_INLINE */
439
441_ACRTIMP int __cdecl _snprintf_s(char*,size_t,size_t,const char*,...) __WINE_CRT_PRINTF_ATTR(4, 5);
449_ACRTIMP int __cdecl sprintf_s(char*,size_t,const char*,...) __WINE_CRT_PRINTF_ATTR(3, 4);
456
458static inline int vsnprintf(char *buffer, size_t size, const char *format, va_list args) __WINE_CRT_PRINTF_ATTR(3, 0);
459static inline int vsnprintf(char *buffer, size_t size, const char *format, va_list args)
460{ return _vsnprintf(buffer,size,format,args); }
461
462_ACRTIMP int __cdecl _snscanf_l(const char*,size_t,const char*,_locale_t,...) __WINE_CRT_SCANF_ATTR(3, 5);
470
471#endif /* _UCRT && !_NO_CRT_STDIO_INLINE */
472
473#endif /* _STDIO_DEFINED */
474
475#ifdef __cplusplus
476}
477#endif
478
479
480static inline FILE* fdopen(int fd, const char *mode) { return _fdopen(fd, mode); }
481static inline int fgetchar(void) { return _fgetchar(); }
482static inline int fileno(FILE* file) { return _fileno(file); }
483static inline int fputchar(int c) { return _fputchar(c); }
484static inline int pclose(FILE* file) { return _pclose(file); }
485static inline FILE* popen(const char* command, const char* mode) { return _popen(command, mode); }
486static inline char* tempnam(const char *dir, const char *prefix) { return _tempnam(dir, prefix); }
487#ifndef _UNLINK_DEFINED
488static inline int unlink(const char* path) { return _unlink(path); }
489#define _UNLINK_DEFINED
490#endif
491
492#if !defined(_NO_CRT_STDIO_INLINE)
493
494static inline int __cdecl snprintf(char *buffer, size_t size, const char *format, ...) __WINE_CRT_PRINTF_ATTR(3, 4);
495static inline int __cdecl snprintf(char *buffer, size_t size, const char *format, ...)
496{
497 int ret;
499
502 va_end(args);
503 return ret;
504}
505
506static inline int __cdecl _snprintf(char *buffer, size_t size, const char *format, ...) __WINE_CRT_PRINTF_ATTR(3, 4);
507static inline int __cdecl _snprintf(char *buffer, size_t size, const char *format, ...)
508{
509 int ret;
511
514 va_end(args);
515 return ret;
516}
517
518static inline int __cdecl sprintf(char *buffer, const char *format, ...) __WINE_CRT_PRINTF_ATTR(2, 3);
519static inline int __cdecl sprintf(char *buffer, const char *format, ...)
520{
521 int ret;
523
526 va_end(args);
527 return ret;
528}
529
530#else /* !_NO_CRT_STDIO_INLINE */
531
532_ACRTIMP int __cdecl snprintf(char*,size_t,const char*,...) __WINE_CRT_PRINTF_ATTR(3, 4);
533_ACRTIMP int __cdecl _snprintf(char*,size_t,const char*,...) __WINE_CRT_PRINTF_ATTR(3, 4);
534_ACRTIMP int __cdecl sprintf(char*,const char*,...) __WINE_CRT_PRINTF_ATTR(2, 3);
536
537#endif /* !_NO_CRT_STDIO_INLINE */
538
539static inline wint_t fgetwchar(void) { return _fgetwchar(); }
540static inline wint_t fputwchar(wint_t wc) { return _fputwchar(wc); }
541static inline int getw(FILE* file) { return _getw(file); }
542static inline int putw(int val, FILE* file) { return _putw(val, file); }
543static inline FILE* wpopen(const wchar_t* command,const wchar_t* mode) { return _wpopen(command, mode); }
544
545#endif /* __WINE_STDIO_H */
#define _flsbuf
Definition: _flswbuf.c:10
#define fileno
Definition: acwin.h:102
unsigned int dir
Definition: maze.c:112
Definition: _locale.h:75
#define NULL
Definition: types.h:112
wint_t CDECL _fputwchar(wint_t wc)
Definition: file.c:4246
wint_t CDECL _fgetwchar(void)
Definition: file.c:4027
int errno_t
Definition: corecrt.h:249
long __msvcrt_long
Definition: corecrt.h:167
#define _CRT_INT_MAX
Definition: corecrt.h:158
#define __cdecl
Definition: corecrt.h:121
#define __WINE_CRT_SCANF_ATTR(fmt, args)
Definition: corecrt.h:322
#define _ACRTIMP
Definition: corecrt.h:153
#define __WINE_CRT_PRINTF_ATTR(fmt, args)
Definition: corecrt.h:321
unsigned short wint_t
Definition: corecrt.h:243
#define __int64
Definition: corecrt.h:72
#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION
#define _CRT_INTERNAL_SCANF_SECURECRT
#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
#define stdout
_ACRTIMP FILE *__cdecl _wpopen(const wchar_t *, const wchar_t *)
Definition: process.c:1044
#define stdin
#define va_end(v)
Definition: stdarg.h:28
#define va_start(v, l)
Definition: stdarg.h:26
_ACRTIMP int __cdecl _getw(FILE *)
Definition: file.c:3994
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl fprintf(FILE *, const char *,...) __WINE_CRT_PRINTF_ATTR(2
_ACRTIMP int __cdecl _fclose_nolock(FILE *)
Definition: file.c:3773
_ACRTIMP int __cdecl _fgetchar(void)
Definition: file.c:3895
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _vsnprintf_s(char *, size_t, size_t, const char *, va_list) __WINE_CRT_PRINTF_ATTR(4
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl fscanf(FILE *, const char *,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP int __cdecl _set_printf_count_output(int)
Definition: stubs.c:10
static char * tempnam(const char *dir, const char *prefix)
Definition: stdio.h:486
_ACRTIMP size_t __cdecl _fread_nolock_s(void *, size_t, size_t, size_t, FILE *)
Definition: fread.cpp:69
_ACRTIMP char *__cdecl tmpnam(char *)
Definition: file.c:5108
_ACRTIMP size_t __cdecl fwrite(const void *, size_t, size_t, FILE *)
Definition: file.c:4129
_ACRTIMP int __cdecl fputc(int, FILE *)
Definition: file.c:4360
_ACRTIMP int __cdecl _unlink(const char *)
Definition: file.c:1085
_ACRTIMP char *__cdecl fgets(char *, int, FILE *)
Definition: file.c:3903
_ACRTIMP void __cdecl clearerr(FILE *)
Definition: file.c:1672
_ACRTIMP int __cdecl _fseek_nolock(FILE *, __msvcrt_long, int)
Definition: file.c:1618
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vsprintf_s(char *, size_t, const char *, va_list) __WINE_CRT_PRINTF_ATTR(3
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl scanf(const char *,...) __WINE_CRT_SCANF_ATTR(1
_ACRTIMP __msvcrt_long __cdecl ftell(FILE *)
Definition: file.c:4740
_ACRTIMP FILE *__cdecl __iob_func(void)
Definition: file.c:972
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _sscanf_l(const char *, const char *, _locale_t,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP int __cdecl _fcloseall(void)
Definition: file.c:1373
_ACRTIMP int __cdecl fgetc(FILE *)
Definition: file.c:3863
_ACRTIMP int __cdecl fputs(const char *, FILE *)
Definition: file.c:4769
_ACRTIMP FILE *__cdecl _fsopen(const char *, const char *, int)
Definition: file.c:4288
static int fgetchar(void)
Definition: stdio.h:481
static wint_t fputwchar(wint_t wc)
Definition: stdio.h:540
_ACRTIMP int __cdecl ferror(FILE *)
Definition: file.c:3811
_ACRTIMP size_t __cdecl fread_s(void *, size_t, size_t, size_t, FILE *)
Definition: fread.cpp:30
_ACRTIMP int __cdecl _pclose(FILE *)
Definition: process.c:1212
_ACRTIMP void __cdecl _lock_file(FILE *)
Definition: file.c:1487
_ACRTIMP int __cdecl feof(FILE *)
Definition: file.c:3803
_ACRTIMP FILE *__cdecl _fdopen(int, const char *)
Definition: file.c:1847
_ACRTIMP int __cdecl getc(FILE *)
Definition: file.c:4821
_ACRTIMP int __cdecl _getmaxstdio(void)
Definition: file.c:5862
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sprintf_s(char *, size_t, const char *,...) __WINE_CRT_PRINTF_ATTR(3
_ACRTIMP int __cdecl _scprintf(const char *,...) __WINE_CRT_PRINTF_ATTR(1
_ACRTIMP int __cdecl _fseeki64_nolock(FILE *, __int64, int)
Definition: file.c:1585
_ACRTIMP FILE *__cdecl freopen(const char *, const char *, FILE *)
Definition: file.c:4624
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _snprintf_s(char *, size_t, size_t, const char *,...) __WINE_CRT_PRINTF_ATTR(4
_ACRTIMP void __cdecl _unlock_file(FILE *)
Definition: file.c:1499
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl fprintf_s(FILE *, const char *,...) __WINE_CRT_PRINTF_ATTR(2
_ACRTIMP unsigned int __cdecl _get_output_format(void)
Definition: misc.c:401
_ACRTIMP char *__cdecl _tempnam(const char *, const char *)
Definition: file.c:3441
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vfprintf_s(FILE *, const char *, va_list) __WINE_CRT_PRINTF_ATTR(2
_ACRTIMP int __cdecl _filbuf(FILE *)
Definition: file.c:3819
_ACRTIMP errno_t __cdecl clearerr_s(FILE *)
Definition: file.c:1684
_ACRTIMP int __cdecl fclose(FILE *)
Definition: file.c:3757
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vsprintf(char *, const char *, va_list) __WINE_CRT_PRINTF_ATTR(2
_ACRTIMP int __cdecl putc(int, FILE *)
Definition: file.c:4907
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _vsprintf_p_l(char *, size_t, const char *, _locale_t, va_list) __WINE_CRT_PRINTF_ATTR(3
_ACRTIMP int __cdecl _get_printf_count_output(void)
Definition: stubs.c:5
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sscanf(const char *, const char *,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vprintf_s(const char *, va_list) __WINE_CRT_PRINTF_ATTR(1
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vfprintf(FILE *, const char *, va_list) __WINE_CRT_PRINTF_ATTR(2
_ACRTIMP errno_t __cdecl fopen_s(FILE **, const char *, const char *)
Definition: file.c:4318
_ACRTIMP int __cdecl _setmaxstdio(int)
Definition: file.c:5870
static int putw(int val, FILE *file)
Definition: stdio.h:542
_ACRTIMP int __cdecl fgetpos(FILE *, fpos_t *)
Definition: file.c:4758
_ACRTIMP size_t __cdecl fread(void *, size_t, size_t, FILE *)
Definition: file.c:4406
_ACRTIMP int __cdecl putchar(int)
Definition: crtsupp.c:12
_ACRTIMP char *__cdecl gets(char *)
Definition: file.c:4871
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl scanf_s(const char *,...) __WINE_CRT_SCANF_ATTR(1
_ACRTIMP errno_t __cdecl freopen_s(FILE **, const char *, const char *, FILE *)
Definition: file.c:4646
_ACRTIMP __int64 __cdecl _ftelli64(FILE *)
Definition: file.c:4672
_ACRTIMP int __cdecl fseek(FILE *, __msvcrt_long, int)
Definition: file.c:1610
_ACRTIMP int __cdecl puts(const char *)
Definition: crtsupp.c:23
_ACRTIMP FILE *__cdecl fopen(const char *, const char *)
Definition: file.c:4310
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl printf_s(const char *,...) __WINE_CRT_PRINTF_ATTR(1
_ACRTIMP int __cdecl _fputchar(int)
Definition: file.c:4398
__int64 DECLSPEC_ALIGN(8) fpos_t
Definition: stdio.h:49
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sscanf_s(const char *, const char *,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP int __cdecl _rmtmp(void)
Definition: file.c:2748
_ACRTIMP int __cdecl setvbuf(FILE *, char *, int, size_t)
Definition: file.c:5006
_ACRTIMP int __cdecl _fileno(FILE *)
Definition: file.c:1925
_ACRTIMP void __cdecl perror(const char *)
Definition: errno.c:337
_ACRTIMP int __cdecl fsetpos(FILE *, fpos_t *)
Definition: file.c:4664
_ACRTIMP void __cdecl setbuf(FILE *, char *)
Definition: file.c:5046
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl fscanf_s(FILE *, const char *,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP int __cdecl _snscanf_l(const char *, size_t, const char *, _locale_t,...) __WINE_CRT_SCANF_ATTR(3
_ACRTIMP int __cdecl rename(const char *, const char *)
Definition: file.c:4973
_ACRTIMP int __cdecl _fflush_nolock(FILE *)
Definition: file.c:1201
static int fputchar(int c)
Definition: stdio.h:483
_ACRTIMP __msvcrt_long __cdecl _ftell_nolock(FILE *)
Definition: ftell.cpp:379
_ACRTIMP int __cdecl _fseeki64(FILE *, __int64, int)
Definition: file.c:1571
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl static FILE * fdopen(int fd, const char *mode)
Definition: stdio.h:480
_ACRTIMP int __cdecl getchar(void)
Definition: file.c:4813
_ACRTIMP int __cdecl _flushall(void)
Definition: file.c:1174
_ACRTIMP size_t __cdecl _fwrite_nolock(const void *, size_t, size_t, FILE *)
Definition: file.c:4143
_ACRTIMP void __cdecl rewind(FILE *)
Definition: file.c:1712
_ACRTIMP size_t __cdecl _fread_nolock(void *, size_t, size_t, FILE *)
Definition: file.c:4420
_ACRTIMP int __cdecl ungetc(int, FILE *)
Definition: file.c:5732
_ACRTIMP int __cdecl fflush(FILE *)
Definition: file.c:1182
_ACRTIMP int __cdecl _putw(int, FILE *)
Definition: file.c:3738
_ACRTIMP FILE *__cdecl tmpfile(void)
Definition: file.c:5199
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl vprintf(const char *, va_list) __WINE_CRT_PRINTF_ATTR(1
_ACRTIMP FILE *__cdecl _popen(const char *, const char *)
Definition: process.c:1185
_ACRTIMP unsigned int __cdecl _set_output_format(unsigned int)
Definition: misc.c:409
static int getw(FILE *file)
Definition: stdio.h:541
static wint_t fgetwchar(void)
Definition: stdio.h:539
_ACRTIMP int __cdecl _ungetc_nolock(int, FILE *)
Definition: file.c:5748
_ACRTIMP __int64 __cdecl _ftelli64_nolock(FILE *)
Definition: file.c:4686
char * va_list
Definition: vadefs.h:50
int CDECL __stdio_common_vfscanf(unsigned __int64 options, FILE *file, const char *format, _locale_t locale, va_list valist)
Definition: scanf.c:707
int CDECL __stdio_common_vsscanf(unsigned __int64 options, const char *input, size_t length, const char *format, _locale_t locale, va_list valist)
Definition: scanf.c:667
int WINAPIV _sprintf_l(char *str, const char *format, _locale_t locale,...)
Definition: wcs.c:974
return ret
Definition: mutex.c:146
#define printf
Definition: freeldr.h:97
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
const GLubyte * c
Definition: glext.h:8905
GLenum mode
Definition: glext.h:6217
GLuint GLfloat * val
Definition: glext.h:7180
#define unlink
Definition: syshdrs.h:54
#define _vscprintf
Definition: _vscprintf.c:25
#define sprintf
Definition: sprintf.c:45
int remove
Definition: msacm.c:1366
#define popen
Definition: syshdrs.h:72
#define pclose
Definition: syshdrs.h:73
int __cdecl __stdio_common_vsprintf_s(unsigned __int64 const options, char *const buffer, size_t const buffer_count, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:292
int __cdecl __stdio_common_vfprintf(unsigned __int64 const options, FILE *const stream, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:52
int __cdecl __stdio_common_vsprintf(unsigned __int64 const options, char *const buffer, size_t const buffer_count, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:233
int __cdecl __stdio_common_vsprintf_p(unsigned __int64 const options, char *const buffer, size_t const buffer_count, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:421
int __cdecl __stdio_common_vfprintf_s(unsigned __int64 const options, FILE *const stream, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:76
int __cdecl __stdio_common_vsnprintf_s(unsigned __int64 const options, char *const buffer, size_t const buffer_count, size_t const max_count, char const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:393
#define _fgetc_nolock(_stream)
Definition: stdio.h:1142
#define _getc_nolock(_stream)
Definition: stdio.h:1144
#define _putc_nolock(_c, _stream)
Definition: stdio.h:1145
#define wpopen
Definition: stdio.h:1082
#define _fputc_nolock(_c, _stream)
Definition: stdio.h:1143
#define inline
Definition: compat.h:23
__int64 fpos_t
Definition: stdio.h:73
static int fd
Definition: io.c:51
#define args
Definition: format.c:66
Definition: match.c:390
Definition: fci.c:127
Definition: format.c:58
Character const *const prefix
Definition: tempnam.cpp:195
#define vsnprintf
Definition: tif_win32.c:406
#define snprintf
Definition: wintirpc.h:48
#define _vsnprintf
Definition: xmlstorage.h:202
#define _snprintf
Definition: xmlstorage.h:200
#define const
Definition: zconf.h:233