ReactOS 0.4.15-dev-6056-gb29b268
stdio.h File Reference
#include <crtdefs.h>
#include <stdarg.h>
#include <vadefs.h>
#include <sec_api/stdio_s.h>
Include dependency graph for stdio.h:

Go to the source code of this file.

Classes

struct  _iobuf
 

Macros

#define __need___va_list
 
#define BUFSIZ   512
 
#define _NFILE   _NSTREAM_
 
#define _NSTREAM_   512
 
#define _IOB_ENTRIES   20
 
#define EOF   (-1)
 
#define _FILE_DEFINED
 
#define _P_tmpdir   "\\"
 
#define _wP_tmpdir   L"\\"
 
#define L_tmpnam   (sizeof(_P_tmpdir) + 12)
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 
#define STDIN_FILENO   0
 
#define STDOUT_FILENO   1
 
#define STDERR_FILENO   2
 
#define FILENAME_MAX   260
 
#define FOPEN_MAX   20
 
#define _SYS_OPEN   20
 
#define TMP_MAX   32767
 
#define _OFF_T_DEFINED
 
#define _OFF_T_
 
#define _OFF64_T_DEFINED
 
#define _STDSTREAM_DEFINED
 
#define stdin   (&_iob[0])
 
#define stdout   (&_iob[1])
 
#define stderr   (&_iob[2])
 
#define _FPOS_T_DEFINED
 
#define _FPOSOFF(fp)   ((long)(fp))
 
#define _IOREAD   0x0001
 
#define _IOWRT   0x0002
 
#define _IOFBF   0x0000
 
#define _IOLBF   0x0040
 
#define _IONBF   0x0004
 
#define _IOMYBUF   0x0008
 
#define _IOEOF   0x0010
 
#define _IOERR   0x0020
 
#define _IOSTRG   0x0040
 
#define _IORW   0x0080
 
#define _USERBUF   0x0100
 
#define _TWO_DIGIT_EXPONENT   0x1
 
#define _CRT_PERROR_DEFINED
 
#define _CRT_DIRECTORY_DEFINED
 
#define vsnprintf   _vsnprintf
 
#define snprintf   _snprintf
 
#define WEOF   (wint_t)(0xFFFF)
 
#define _CRT_WPERROR_DEFINED
 
#define wpopen   _wpopen
 
#define getwchar()   fgetwc(stdin)
 
#define putwchar(_c)   fputwc((_c),stdout)
 
#define getwc(_stm)   fgetwc(_stm)
 
#define putwc(_c, _stm)   fputwc(_c,_stm)
 
#define _putwc_nolock(_c, _stm)   _fputwc_nolock(_c,_stm)
 
#define _getwc_nolock(_stm)   _fgetwc_nolock(_stm)
 
#define _WSTDIO_DEFINED
 
#define _STDIO_DEFINED
 
#define _fgetc_nolock(_stream)   (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))
 
#define _fputc_nolock(_c, _stream)   (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))
 
#define _getc_nolock(_stream)   _fgetc_nolock(_stream)
 
#define _putc_nolock(_c, _stream)   _fputc_nolock(_c,_stream)
 
#define _getchar_nolock()   _getc_nolock(stdin)
 
#define _putchar_nolock(_c)   _putc_nolock((_c),stdout)
 
#define _getwchar_nolock()   _getwc_nolock(stdin)
 
#define _putwchar_nolock(_c)   _putwc_nolock((_c),stdout)
 
#define P_tmpdir   _P_tmpdir
 
#define SYS_OPEN   _SYS_OPEN
 

Typedefs

typedef struct _iobuf FILE
 
typedef long _off_t
 
typedef long off_t
 

Functions

_CRTIMP FILE *__cdecl __iob_func (void)
 
_Check_return_ _CRTIMP int __cdecl _filbuf (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _flsbuf (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl _fsopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode, _In_ int _ShFlag)
 
_CRTIMP void __cdecl clearerr (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fclose (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fcloseall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl _fdopen (_In_ int _FileHandle, _In_z_ const char *_Mode)
 
_Check_return_ _CRTIMP int __cdecl feof (_In_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl ferror (_In_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fflush (_Inout_opt_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fgetchar (void)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetpos (_Inout_ FILE *_File, _Out_ fpos_t *_Pos)
 
_Check_return_opt_ _CRTIMP char *__cdecl fgets (_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl _fileno (_In_ FILE *_File)
 
_Check_return_ _CRTIMP char *__cdecl _tempnam (_In_opt_z_ const char *_DirName, _In_opt_z_ const char *_FilePrefix)
 
_Check_return_opt_ _CRTIMP int __cdecl _flushall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl fopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode)
 
_Check_return_opt_ _CRTIMP int __cdecl fprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl fputc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fputchar (_In_ int _Ch)
 
_Check_return_opt_ _CRTIMP int __cdecl fputs (_In_z_ const char *_Str, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl fread (_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl freopen (_In_z_ const char *_Filename, _In_z_ const char *_Mode, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl fscanf (_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl fsetpos (_Inout_ FILE *_File, _In_ const fpos_t *_Pos)
 
_Check_return_opt_ _CRTIMP int __cdecl fseek (_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP long __cdecl ftell (_Inout_ FILE *_File)
 
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64 (_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
 
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64 (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite (_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl getc (_Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl getchar (void)
 
_Check_return_ _CRTIMP int __cdecl _getmaxstdio (void)
 
_CRTIMP char *__cdecl gets (char *_Buffer)
 
_Check_return_ _CRTIMP int __cdecl _getw (_Inout_ FILE *_File)
 
_CRTIMP void __cdecl perror (_In_opt_z_ const char *_ErrMsg)
 
_Check_return_opt_ _CRTIMP int __cdecl _pclose (_Inout_ FILE *_File)
 
_Check_return_ _CRTIMP FILE *__cdecl _popen (_In_z_ const char *_Command, _In_z_ const char *_Mode)
 
_Check_return_opt_ _CRTIMP int __cdecl printf (_In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl putc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl putchar (_In_ int _Ch)
 
_Check_return_opt_ _CRTIMP int __cdecl puts (_In_z_ const char *_Str)
 
_Check_return_opt_ _CRTIMP int __cdecl _putw (_In_ int _Word, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl remove (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl rename (_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
 
_Check_return_ _CRTIMP int __cdecl _unlink (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl unlink (_In_z_ const char *_Filename)
 
_CRTIMP void __cdecl rewind (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _rmtmp (void)
 
_Check_return_ _CRTIMP int __cdecl scanf (_In_z_ _Scanf_format_string_ const char *_Format,...)
 
_CRTIMP void __cdecl setbuf (_Inout_ FILE *_File, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
 
_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio (_In_ int _Max)
 
_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format (_In_ unsigned int _Format)
 
_Check_return_opt_ _CRTIMP unsigned int __cdecl _get_output_format (void)
 
_Check_return_opt_ _CRTIMP int __cdecl setvbuf (_Inout_ FILE *_File, _Inout_updates_opt_z_(_Size) char *_Buf, _In_ int _Mode, _In_ size_t _Size)
 
_Check_return_ _CRTIMP int __cdecl _scprintf (_In_z_ _Printf_format_string_ const char *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl sscanf (_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _snscanf (_In_reads_bytes_(_MaxCount) _Pre_z_ const char *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const char *_Format,...)
 
_Check_return_ _CRTIMP FILE *__cdecl tmpfile (void)
 
_CRTIMP char *__cdecl tmpnam (_Pre_maybenull_ _Post_z_ char *_Buffer)
 
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl vfprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vprintf (_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vsnprintf (_Out_writes_(_MaxCount) char *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _snprintf (char *_Dest, size_t _Count, const char *_Format,...)
 
_CRTIMP int __cdecl _vsnprintf (char *_Dest, size_t _Count, const char *_Format, va_list _Args)
 
int __cdecl sprintf (char *_Dest, const char *_Format,...)
 
int __cdecl vsprintf (char *_Dest, const char *_Format, va_list _Args)
 
int __cdecl snprintf (char *s, size_t n, const char *format,...)
 
int __cdecl vscanf (const char *__restrict__ Format, va_list argp)
 
int __cdecl vfscanf (FILE *__restrict__ fp, const char *Format, va_list argp)
 
int __cdecl vsscanf (const char *__restrict__ _Str, const char *__restrict__ Format, va_list argp)
 
_Check_return_ _CRTIMP int __cdecl _vscprintf (_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _set_printf_count_output (_In_ int _Value)
 
_CRTIMP int __cdecl _get_printf_count_output (void)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfsopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _In_ int _ShFlag)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl fgetwc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwchar (void)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl fputwc (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwchar (_In_ wchar_t _Ch)
 
_Check_return_ _CRTIMP wint_t __cdecl getwc (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl putwc (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl putwchar (_In_ wchar_t _Ch)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc (_In_ wint_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wchar_t *__cdecl fgetws (_Out_writes_z_(_SizeInWords) wchar_t *_Dst, _In_ int _SizeInWords, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl fputws (_In_z_ const wchar_t *_Str, _Inout_ FILE *_File)
 
_CRTIMP wchar_t *__cdecl _getws (wchar_t *_String)
 
_Check_return_opt_ _CRTIMP int __cdecl _putws (_In_z_ const wchar_t *_Str)
 
_Check_return_opt_ _CRTIMP int __cdecl fwprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl wprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl _scwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf (_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl vwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_CRTIMP int __cdecl _snwprintf (wchar_t *_Dest, size_t _Count, const wchar_t *_Format,...)
 
_CRTIMP int __cdecl _vsnwprintf (wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
 
_CRTIMP int __cdecl snwprintf (wchar_t *s, size_t n, const wchar_t *format,...)
 
__CRT_INLINE int __cdecl vsnwprintf (wchar_t *s, size_t n, const wchar_t *format, va_list arg)
 
_CRTIMP int __cdecl vwscanf (const wchar_t *, va_list)
 
_CRTIMP int __cdecl vfwscanf (FILE *, const wchar_t *, va_list)
 
_CRTIMP int __cdecl vswscanf (const wchar_t *, const wchar_t *, va_list)
 
_CRTIMP int __cdecl _swprintf (wchar_t *_Dest, const wchar_t *_Format,...)
 
_CRTIMP int __cdecl _vswprintf (wchar_t *_Dest, const wchar_t *_Format, va_list _Args)
 
static _Check_return_opt_ int __cdecl swprintf (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
 
static _Check_return_opt_ int __cdecl vswprintf (_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam (_In_opt_z_ const wchar_t *_Directory, _In_opt_z_ const wchar_t *_FilePrefix)
 
_Check_return_ _CRTIMP int __cdecl _vscwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
 
_Check_return_ _CRTIMP int __cdecl fwscanf (_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl swscanf (_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_opt_ _CRTIMP int __cdecl _snwscanf (_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP int __cdecl wscanf (_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfdopen (_In_ int _FileHandle, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP FILE *__cdecl _wfreopen (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _Inout_ FILE *_OldFile)
 
_CRTIMP void __cdecl _wperror (_In_opt_z_ const wchar_t *_ErrMsg)
 
_Check_return_ _CRTIMP FILE *__cdecl _wpopen (_In_z_ const wchar_t *_Command, _In_z_ const wchar_t *_Mode)
 
_Check_return_ _CRTIMP int __cdecl _wremove (_In_z_ const wchar_t *_Filename)
 
_CRTIMP wchar_t *__cdecl _wtmpnam (_Pre_maybenull_ _Post_z_ wchar_t *_Buffer)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock (_In_ wchar_t _Ch, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock (_In_ wint_t _Ch, _Inout_ FILE *_File)
 
_CRTIMP void __cdecl _lock_file (_Inout_ FILE *_File)
 
_CRTIMP void __cdecl _unlock_file (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock (_Inout_opt_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock (_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock (_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP long __cdecl _ftell_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock (_Inout_ FILE *_File, _In_ __int64 _Offset, _In_ int _Origin)
 
__MINGW_EXTENSION _Check_return_ _CRTIMP __int64 __cdecl _ftelli64_nolock (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock (_In_reads_bytes_(_Size *_Count) const void *_DstBuf, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock (_In_ int _Ch, _Inout_ FILE *_File)
 
_CRTIMP char *__cdecl tempnam (_In_opt_z_ const char *_Directory, _In_opt_z_ const char *_FilePrefix)
 
_Check_return_opt_ _CRTIMP int __cdecl fcloseall (void)
 
_Check_return_ _CRTIMP FILE *__cdecl fdopen (_In_ int _FileHandle, _In_z_ const char *_Format)
 
_Check_return_opt_ _CRTIMP int __cdecl fgetchar (void)
 
_Check_return_ _CRTIMP int __cdecl fileno (_In_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl flushall (void)
 
_Check_return_opt_ _CRTIMP int __cdecl fputchar (_In_ int _Ch)
 
_Check_return_ _CRTIMP int __cdecl getw (_Inout_ FILE *_File)
 
_Check_return_opt_ _CRTIMP int __cdecl putw (_In_ int _Ch, _Inout_ FILE *_File)
 
_Check_return_ _CRTIMP int __cdecl rmtmp (void)
 

Variables

__MINGW_EXTENSION typedef long long _off64_t
 
__MINGW_EXTENSION typedef long long off64_t
 
__MINGW_EXTENSION typedef long long fpos_t
 
_CRTIMP int _commode
 

Macro Definition Documentation

◆ __need___va_list

#define __need___va_list

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 11 of file stdio.h.

◆ _CRT_DIRECTORY_DEFINED

#define _CRT_DIRECTORY_DEFINED

Definition at line 506 of file stdio.h.

◆ _CRT_PERROR_DEFINED

#define _CRT_PERROR_DEFINED

Definition at line 444 of file stdio.h.

◆ _CRT_WPERROR_DEFINED

#define _CRT_WPERROR_DEFINED

Definition at line 1065 of file stdio.h.

◆ _fgetc_nolock

#define _fgetc_nolock (   _stream)    (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))

Definition at line 1142 of file stdio.h.

◆ _FILE_DEFINED

#define _FILE_DEFINED

Definition at line 38 of file stdio.h.

◆ _FPOS_T_DEFINED

#define _FPOS_T_DEFINED

Definition at line 104 of file stdio.h.

◆ _FPOSOFF

#define _FPOSOFF (   fp)    ((long)(fp))

Definition at line 112 of file stdio.h.

◆ _fputc_nolock

#define _fputc_nolock (   _c,
  _stream 
)    (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))

Definition at line 1143 of file stdio.h.

◆ _getc_nolock

#define _getc_nolock (   _stream)    _fgetc_nolock(_stream)

Definition at line 1144 of file stdio.h.

◆ _getchar_nolock

#define _getchar_nolock ( )    _getc_nolock(stdin)

Definition at line 1146 of file stdio.h.

◆ _getwc_nolock

#define _getwc_nolock (   _stm)    _fgetwc_nolock(_stm)

Definition at line 1134 of file stdio.h.

◆ _getwchar_nolock

#define _getwchar_nolock ( )    _getwc_nolock(stdin)

Definition at line 1148 of file stdio.h.

◆ _IOB_ENTRIES

#define _IOB_ENTRIES   20

Definition at line 23 of file stdio.h.

◆ _IOEOF

#define _IOEOF   0x0010

Definition at line 132 of file stdio.h.

◆ _IOERR

#define _IOERR   0x0020

Definition at line 133 of file stdio.h.

◆ _IOFBF

#define _IOFBF   0x0000

Definition at line 127 of file stdio.h.

◆ _IOLBF

#define _IOLBF   0x0040

Definition at line 128 of file stdio.h.

◆ _IOMYBUF

#define _IOMYBUF   0x0008

Definition at line 131 of file stdio.h.

◆ _IONBF

#define _IONBF   0x0004

Definition at line 129 of file stdio.h.

◆ _IOREAD

#define _IOREAD   0x0001

Definition at line 124 of file stdio.h.

◆ _IORW

#define _IORW   0x0080

Definition at line 135 of file stdio.h.

◆ _IOSTRG

#define _IOSTRG   0x0040

Definition at line 134 of file stdio.h.

◆ _IOWRT

#define _IOWRT   0x0002

Definition at line 125 of file stdio.h.

◆ _NFILE

#define _NFILE   _NSTREAM_

Definition at line 21 of file stdio.h.

◆ _NSTREAM_

#define _NSTREAM_   512

Definition at line 22 of file stdio.h.

◆ _OFF64_T_DEFINED

#define _OFF64_T_DEFINED

Definition at line 81 of file stdio.h.

◆ _OFF_T_

#define _OFF_T_

Definition at line 72 of file stdio.h.

◆ _OFF_T_DEFINED

#define _OFF_T_DEFINED

Definition at line 70 of file stdio.h.

◆ _P_tmpdir

#define _P_tmpdir   "\\"

Definition at line 45 of file stdio.h.

◆ _putc_nolock

#define _putc_nolock (   _c,
  _stream 
)    _fputc_nolock(_c,_stream)

Definition at line 1145 of file stdio.h.

◆ _putchar_nolock

#define _putchar_nolock (   _c)    _putc_nolock((_c),stdout)

Definition at line 1147 of file stdio.h.

◆ _putwc_nolock

#define _putwc_nolock (   _c,
  _stm 
)    _fputwc_nolock(_c,_stm)

Definition at line 1133 of file stdio.h.

◆ _putwchar_nolock

#define _putwchar_nolock (   _c)    _putwc_nolock((_c),stdout)

Definition at line 1149 of file stdio.h.

◆ _STDIO_DEFINED

#define _STDIO_DEFINED

Definition at line 1139 of file stdio.h.

◆ _STDSTREAM_DEFINED

#define _STDSTREAM_DEFINED

Definition at line 97 of file stdio.h.

◆ _SYS_OPEN

#define _SYS_OPEN   20

Definition at line 66 of file stdio.h.

◆ _TWO_DIGIT_EXPONENT

#define _TWO_DIGIT_EXPONENT   0x1

Definition at line 138 of file stdio.h.

◆ _USERBUF

#define _USERBUF   0x0100

Definition at line 136 of file stdio.h.

◆ _wP_tmpdir

#define _wP_tmpdir   L"\\"

Definition at line 46 of file stdio.h.

◆ _WSTDIO_DEFINED

#define _WSTDIO_DEFINED

Definition at line 1136 of file stdio.h.

◆ BUFSIZ

#define BUFSIZ   512

Definition at line 20 of file stdio.h.

◆ EOF

#define EOF   (-1)

Definition at line 24 of file stdio.h.

◆ FILENAME_MAX

#define FILENAME_MAX   260

Definition at line 64 of file stdio.h.

◆ FOPEN_MAX

#define FOPEN_MAX   20

Definition at line 65 of file stdio.h.

◆ getwc

#define getwc (   _stm)    fgetwc(_stm)

Definition at line 1131 of file stdio.h.

◆ getwchar

Definition at line 1124 of file stdio.h.

◆ L_tmpnam

#define L_tmpnam   (sizeof(_P_tmpdir) + 12)

Definition at line 49 of file stdio.h.

◆ P_tmpdir

#define P_tmpdir   _P_tmpdir

Definition at line 1241 of file stdio.h.

◆ putwc

#define putwc (   _c,
  _stm 
)    fputwc(_c,_stm)

Definition at line 1132 of file stdio.h.

◆ putwchar

#define putwchar (   _c)    fputwc((_c),stdout)

Definition at line 1125 of file stdio.h.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 56 of file stdio.h.

◆ SEEK_END

#define SEEK_END   2

Definition at line 57 of file stdio.h.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 58 of file stdio.h.

◆ snprintf

#define snprintf   _snprintf

Definition at line 709 of file stdio.h.

◆ stderr

#define stderr   (&_iob[2])

Definition at line 100 of file stdio.h.

◆ STDERR_FILENO

#define STDERR_FILENO   2

Definition at line 62 of file stdio.h.

◆ stdin

#define stdin   (&_iob[0])

Definition at line 98 of file stdio.h.

◆ STDIN_FILENO

#define STDIN_FILENO   0

Definition at line 60 of file stdio.h.

◆ stdout

#define stdout   (&_iob[1])

Definition at line 99 of file stdio.h.

◆ STDOUT_FILENO

#define STDOUT_FILENO   1

Definition at line 61 of file stdio.h.

◆ SYS_OPEN

#define SYS_OPEN   _SYS_OPEN

Definition at line 1242 of file stdio.h.

◆ TMP_MAX

#define TMP_MAX   32767

Definition at line 67 of file stdio.h.

◆ vsnprintf

#define vsnprintf   _vsnprintf

Definition at line 706 of file stdio.h.

◆ WEOF

#define WEOF   (wint_t)(0xFFFF)

Definition at line 731 of file stdio.h.

◆ wpopen

#define wpopen   _wpopen

Definition at line 1082 of file stdio.h.

Typedef Documentation

◆ _off_t

typedef long _off_t

Definition at line 73 of file stdio.h.

◆ FILE

typedef struct _iobuf FILE

Definition at line 37 of file stdio.h.

◆ off_t

typedef long off_t

Definition at line 75 of file stdio.h.

Function Documentation

◆ __iob_func()

_CRTIMP FILE *__cdecl __iob_func ( void  )

Definition at line 682 of file file.c.

683{
684 return &_iob[0];
685}
FILE _iob[_IOB_ENTRIES]
Definition: file.c:133

Referenced by Test__iob().

◆ _fclose_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fclose_nolock ( _Inout_ FILE _File)

◆ _fcloseall()

Definition at line 1081 of file file.c.

1082{
1083 int num_closed = 0, i;
1084 FILE *file;
1085
1086 LOCK_FILES();
1087 for (i = 3; i < MSVCRT_stream_idx; i++) {
1089
1090 if (file->_flag && !fclose(file))
1091 num_closed++;
1092 }
1093 UNLOCK_FILES();
1094
1095 TRACE(":closed (%d) handles\n",num_closed);
1096 return num_closed;
1097}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define LOCK_FILES()
Definition: file.c:155
int CDECL fclose(FILE *file)
Definition: file.c:2783
#define UNLOCK_FILES()
Definition: file.c:156
static FILE * msvcrt_get_file(int i)
Definition: file.c:269
static int MSVCRT_stream_idx
Definition: file.c:135
#define TRACE(s)
Definition: solgame.cpp:4
Definition: fci.c:127

Referenced by msvcrt_free_io(), and test_fopen_fclose_fcloseall().

◆ _fdopen()

◆ _fflush_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fflush_nolock ( _Inout_opt_ FILE _File)

◆ _fgetchar()

Definition at line 2906 of file file.c.

2907{
2908 return fgetc(stdin);
2909}
#define stdin
Definition: stdio.h:98
int CDECL fgetc(FILE *file)
Definition: file.c:2886

◆ _fgetwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock ( _Inout_ FILE _File)

◆ _fgetwchar()

Definition at line 3027 of file file.c.

3028{
3029 return fgetwc(stdin);
3030}
wint_t CDECL fgetwc(FILE *file)
Definition: file.c:2946

◆ _filbuf()

_Check_return_ _CRTIMP int __cdecl _filbuf ( _Inout_ FILE _File)

Referenced by fgetc(), and test_filbuf().

◆ _fileno()

◆ _flsbuf()

_Check_return_opt_ _CRTIMP int __cdecl _flsbuf ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ _flushall()

Definition at line 893 of file file.c.

894{
896}
#define _IOWRT
Definition: stdio.h:125
#define _IOREAD
Definition: stdio.h:124
static int msvcrt_flush_all_buffers(int mask)
Definition: file.c:867

Referenced by msvcrt_free_io(), test_fflush(), and wmain().

◆ _fputchar()

◆ _fputwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock ( _In_ wchar_t  _Ch,
_Inout_ FILE _File 
)

◆ _fputwchar()

◆ _fread_nolock()

_Check_return_opt_ _CRTIMP size_t __cdecl _fread_nolock ( _Out_writes_bytes_(_ElementSize *_Count) void _DstBuf,
_In_ size_t  _ElementSize,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ _fseek_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _fseek_nolock ( _Inout_ FILE _File,
_In_ long  _Offset,
_In_ int  _Origin 
)

◆ _fseeki64()

_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64 ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)

◆ _fseeki64_nolock()

_Check_return_opt_ __MINGW_EXTENSION _CRTIMP int __cdecl _fseeki64_nolock ( _Inout_ FILE _File,
_In_ __int64  _Offset,
_In_ int  _Origin 
)

◆ _fsopen()

_Check_return_ _CRTIMP FILE *__cdecl _fsopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode,
_In_ int  _ShFlag 
)

◆ _ftell_nolock()

_Check_return_ _CRTIMP long __cdecl _ftell_nolock ( _Inout_ FILE _File)

◆ _ftelli64()

◆ _ftelli64_nolock()

◆ _fwrite_nolock()

_Check_return_opt_ _CRTIMP size_t __cdecl _fwrite_nolock ( _In_reads_bytes_(_Size *_Count) const void _DstBuf,
_In_ size_t  _Size,
_In_ size_t  _Count,
_Inout_ FILE _File 
)

◆ _get_output_format()

_Check_return_opt_ _CRTIMP unsigned int __cdecl _get_output_format ( void  )

Definition at line 2 of file ofmt_stub.c.

3{
4 return 0;
5}

◆ _get_printf_count_output()

_CRTIMP int __cdecl _get_printf_count_output ( void  )

Definition at line 5 of file stubs.c.

6{
7 return n_format_enabled ? 1 : 0;
8}
static BOOL n_format_enabled
Definition: stubs.c:3

◆ _getmaxstdio()

_Check_return_ _CRTIMP int __cdecl _getmaxstdio ( void  )

Definition at line 4026 of file file.c.

4027{
4028 return MSVCRT_max_streams;
4029}
static int MSVCRT_max_streams
Definition: file.c:135

◆ _getw()

Referenced by test_readmode().

◆ _getws()

_CRTIMP wchar_t *__cdecl _getws ( wchar_t _String)

Definition at line 3663 of file file.c.

3664{
3665 wint_t cc;
3666 wchar_t* ws = buf;
3667
3669 for (cc = fgetwc(stdin); cc != WEOF && cc != '\n';
3670 cc = fgetwc(stdin))
3671 {
3672 if (cc != '\r')
3673 *buf++ = (wchar_t)cc;
3674 }
3675 *buf = '\0';
3676
3677 TRACE("got %s\n", debugstr_w(ws));
3679 return ws;
3680}
int wint_t
Definition: _apple.h:38
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
uint32_t cc
Definition: isohybrid.c:75
#define debugstr_w
Definition: kernel32.h:32
#define WEOF
Definition: conio.h:185
void CDECL _lock_file(FILE *file)
Definition: file.c:1193
void CDECL _unlock_file(FILE *file)
Definition: file.c:1205
const char * ws
Definition: skip_ws.cpp:7
#define wchar_t
Definition: wchar.h:102

◆ _lock_file()

_CRTIMP void __cdecl _lock_file ( _Inout_ FILE _File)

◆ _pclose()

◆ _popen()

◆ _putw()

_Check_return_opt_ _CRTIMP int __cdecl _putw ( _In_ int  _Word,
_Inout_ FILE _File 
)

◆ _putws()

◆ _rmtmp()

Definition at line 2094 of file file.c.

2095{
2096 int num_removed = 0, i;
2097 FILE *file;
2098
2099 LOCK_FILES();
2100 for (i = 3; i < MSVCRT_stream_idx; i++) {
2102
2103 if (file->_tmpfname)
2104 {
2105 fclose(file);
2106 num_removed++;
2107 }
2108 }
2109 UNLOCK_FILES();
2110
2111 if (num_removed)
2112 TRACE(":removed (%d) temp files\n",num_removed);
2113 return num_removed;
2114}

◆ _scprintf()

Referenced by HTTPREQ_QueryOption().

◆ _scwprintf()

◆ _set_output_format()

_Check_return_opt_ _CRTIMP unsigned int __cdecl _set_output_format ( _In_ unsigned int  _Format)

◆ _set_printf_count_output()

_CRTIMP int __cdecl _set_printf_count_output ( _In_ int  _Value)

◆ _setmaxstdio()

_Check_return_opt_ _CRTIMP int __cdecl _setmaxstdio ( _In_ int  _Max)

Referenced by test_setmaxstdio().

◆ _snprintf()

_CRTIMP int __cdecl _snprintf ( char _Dest,
size_t  _Count,
const char _Format,
  ... 
)

Definition at line 718 of file sprintf.c.

719{
721 int i;
722
723 va_start(args, fmt);
724 i=_vsnprintf(buf,cnt,fmt,args);
725 va_end(args);
726 return i;
727}
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define args
Definition: format.c:66
Definition: match.c:390
Definition: dsound.c:943
#define _vsnprintf
Definition: xmlstorage.h:202

◆ _snscanf()

◆ _snwprintf()

_CRTIMP int __cdecl _snwprintf ( wchar_t _Dest,
size_t  _Count,
const wchar_t _Format,
  ... 
)

◆ _snwscanf()

◆ _swprintf()

_CRTIMP int __cdecl _swprintf ( wchar_t _Dest,
const wchar_t _Format,
  ... 
)

◆ _swprintf_c()

_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
  ... 
)

◆ _tempnam()

◆ _ungetc_nolock()

_Check_return_opt_ _CRTIMP int __cdecl _ungetc_nolock ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ _ungetwc_nolock()

_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)

◆ _unlink()

_Check_return_ _CRTIMP int __cdecl _unlink ( _In_z_ const char _Filename)

◆ _unlock_file()

_CRTIMP void __cdecl _unlock_file ( _Inout_ FILE _File)

◆ _vscprintf()

◆ _vscwprintf()

◆ _vsnprintf()

_CRTIMP int __cdecl _vsnprintf ( char _Dest,
size_t  _Count,
const char _Format,
va_list  _Args 
)

Definition at line 386 of file sprintf.c.

387{
388 int len;
389 unsigned long long num;
390 double _double;
391
392 int base;
393 char *str, *end;
394 const char *s;
395 const wchar_t *sw;
396
397 int flags; /* flags to number() */
398
399 int field_width; /* width of output field */
400 int precision; /* min. # of digits for integers; max
401 number of chars for from string */
402 int qualifier; /* 'h', 'l', 'L', 'I' or 'w' for integer fields */
403
404 /* clear the string buffer with zero so we do not need NULL terment it at end */
405
406 str = buf;
407 end = buf + cnt - 1;
408 if (end < buf - 1) {
409 end = ((char *) -1);
410 cnt = end - buf + 1;
411 }
412
413 for ( ; *fmt ; ++fmt) {
414 if (*fmt != '%') {
415 if (str <= end)
416 *str = *fmt;
417 ++str;
418 continue;
419 }
420
421 /* process flags */
422 flags = 0;
423 repeat:
424 ++fmt; /* this also skips first '%' */
425 switch (*fmt) {
426 case '-': flags |= LEFT; goto repeat;
427 case '+': flags |= PLUS; goto repeat;
428 case ' ': flags |= SPACE; goto repeat;
429 case '#': flags |= SPECIAL; goto repeat;
430 case '0': flags |= ZEROPAD; goto repeat;
431 }
432
433 /* get field width */
434 field_width = -1;
435 if (isdigit(*fmt))
436 field_width = skip_atoi(&fmt);
437 else if (*fmt == '*') {
438 ++fmt;
439 /* it's the next argument */
440 field_width = va_arg(args, int);
441 if (field_width < 0) {
442 field_width = -field_width;
443 flags |= LEFT;
444 }
445 }
446
447 /* get the precision */
448 precision = -1;
449 if (*fmt == '.') {
450 ++fmt;
451 if (isdigit(*fmt))
453 else if (*fmt == '*') {
454 ++fmt;
455 /* it's the next argument */
456 precision = va_arg(args, int);
457 }
458 if (precision < 0)
459 precision = 0;
460 }
461
462 /* get the conversion qualifier */
463 qualifier = -1;
464 if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt == 'w') {
465 qualifier = *fmt;
466 ++fmt;
467 } else if (*fmt == 'I' && *(fmt+1) == '6' && *(fmt+2) == '4') {
468 qualifier = *fmt;
469 fmt += 3;
470 } else if (*fmt == 'I' && *(fmt+1) == '3' && *(fmt+2) == '2') {
471 qualifier = 'l';
472 fmt += 3;
473 } else if (*fmt == 'F' && *(fmt+1) == 'p') {
474 fmt += 1;
475 flags |= REMOVEHEX;
476 }
477
478 /* default base */
479 base = 10;
480
481 switch (*fmt) {
482 case 'c': /* finished */
483 if (qualifier == 'l' || qualifier == 'w') {
484 wchar_t sw1[2];
485 /* print unicode string */
486 sw1[0] = (wchar_t) va_arg(args, int);
487 sw1[1] = 0;
488 str = stringw(str, end, (wchar_t *)&sw1, -1, field_width, precision, flags);
489 } else {
490 char s1[2];
491 /* print ascii string */
492 s1[0] = ( unsigned char) va_arg(args, int);
493 s1[1] = 0;
494 str = string(str, end, (char *)&s1, -1, field_width, precision, flags);
495 }
496 continue;
497
498 case 'C': /* finished */
499 if (!(flags & LEFT))
500 while (--field_width > 0) {
501 if (str <= end)
502 *str = ' ';
503 ++str;
504 }
505 if (qualifier == 'h') {
506 if (str <= end)
507 *str = (unsigned char) va_arg(args, int);
508 ++str;
509 } else {
510 if (str <= end)
511 *str = (unsigned char)(wchar_t) va_arg(args, int);
512 ++str;
513 }
514 while (--field_width > 0) {
515 if (str <= end)
516 *str = ' ';
517 ++str;
518 }
519 continue;
520
521 case 's': /* finished */
522 if (qualifier == 'l' || qualifier == 'w') {
523 /* print unicode string */
524 sw = va_arg(args, wchar_t *);
525 str = stringw(str, end, sw, -1, field_width, precision, flags);
526 } else {
527 /* print ascii string */
528 s = va_arg(args, char *);
529 str = string(str, end, s, -1, field_width, precision, flags);
530 }
531 continue;
532
533 case 'S':
534 if (qualifier == 'h') {
535 /* print ascii string */
536 s = va_arg(args, char *);
537 str = string(str, end, s, -1, field_width, precision, flags);
538 } else {
539 /* print unicode string */
540 sw = va_arg(args, wchar_t *);
541 str = stringw(str, end, sw, -1, field_width, precision, flags);
542 }
543 continue;
544
545 case 'Z':
546 if (qualifier == 'w') {
547 /* print counted unicode string */
549 if ((pus == NULL) || (pus->Buffer == NULL)) {
550 sw = NULL;
551 len = -1;
552 } else {
553 sw = pus->Buffer;
554 len = pus->Length / sizeof(WCHAR);
555 }
556 str = stringw(str, end, sw, len, field_width, precision, flags);
557 } else {
558 /* print counted ascii string */
560 if ((pus == NULL) || (pus->Buffer == NULL)) {
561 s = NULL;
562 len = -1;
563 } else {
564 s = pus->Buffer;
565 len = pus->Length;
566 }
567 str = string(str, end, s, len, field_width, precision, flags);
568 }
569 continue;
570
571 case 'p':
572 if ((flags & LARGE) == 0)
573 flags |= LARGE;
574
575 if (field_width == -1) {
576 field_width = 2 * sizeof(void *);
577 flags |= ZEROPAD;
578 }
579 str = number(str, end,
580 (ULONG_PTR) va_arg(args, void *), 16,
581 field_width, precision, flags);
582 continue;
583
584 case 'n':
585 /* FIXME: What does C99 say about the overflow case here? */
586 if (qualifier == 'l') {
587 long * ip = va_arg(args, long *);
588 *ip = (str - buf);
589 } else {
590 int * ip = va_arg(args, int *);
591 *ip = (str - buf);
592 }
593 continue;
594
595 /* float number formats - set up the flags and "break" */
596 case 'e':
597 case 'E':
598 case 'f':
599 case 'g':
600 case 'G':
601 _double = (double)va_arg(args, double);
602 if ( _isnan(_double) ) {
603 s = "Nan";
604 len = 3;
605 while ( len > 0 ) {
606 if (str <= end)
607 *str = *s++;
608 ++str;
609 len --;
610 }
611 } else if ( _isinf(_double) < 0 ) {
612 s = "-Inf";
613 len = 4;
614 while ( len > 0 ) {
615 if (str <= end)
616 *str = *s++;
617 ++str;
618 len --;
619 }
620 } else if ( _isinf(_double) > 0 ) {
621 s = "+Inf";
622 len = 4;
623 while ( len > 0 ) {
624 if (str <= end)
625 *str = *s++;
626 ++str;
627 len --;
628 }
629 } else {
630 if ( precision == -1 )
631 precision = 6;
632 str = numberf(str, end, (int)_double, base, field_width, precision, flags);
633 }
634
635 continue;
636
637
638 /* integer number formats - set up the flags and "break" */
639 case 'o':
640 base = 8;
641 break;
642
643 case 'b':
644 base = 2;
645 break;
646
647 case 'X':
648 flags |= LARGE;
649 case 'x':
650 base = 16;
651 break;
652
653 case 'd':
654 case 'i':
655 flags |= SIGN;
656 case 'u':
657 break;
658
659 default:
660 if (*fmt) {
661 if (str <= end)
662 *str = *fmt;
663 ++str;
664 } else
665 --fmt;
666 continue;
667 }
668
669 if (qualifier == 'I')
670 num = va_arg(args, unsigned long long);
671 else if (qualifier == 'l') {
672 if (flags & SIGN)
673 num = va_arg(args, long);
674 else
675 num = va_arg(args, unsigned long);
676 }
677 else if (qualifier == 'h') {
678 if (flags & SIGN)
679 num = va_arg(args, int);
680 else
681 num = va_arg(args, unsigned int);
682 }
683 else {
684 if (flags & SIGN)
685 num = va_arg(args, int);
686 else
687 num = va_arg(args, unsigned int);
688 }
689 str = number(str, end, num, base, field_width, precision, flags);
690 }
691 if (str <= end)
692 *str = '\0';
693 else if (cnt > 0)
694 /* don't write out a null byte if the buf size is zero */
695 *end = '\0';
696 return str-buf;
697}
#define isdigit(c)
Definition: acclib.h:68
#define va_arg(ap, T)
Definition: acmsvcex.h:89
#define NULL
Definition: types.h:112
unsigned char
Definition: typeof.h:29
GLdouble s
Definition: gl.h:2039
GLuint GLuint end
Definition: gl.h:1545
GLbitfield flags
Definition: glext.h:7161
GLuint GLuint num
Definition: glext.h:9618
GLenum GLsizei len
Definition: glext.h:6722
GLenum GLint GLint * precision
Definition: glext.h:7539
struct S1 s1
char string[160]
Definition: util.h:11
static unsigned int number
Definition: dsound.c:1479
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
Definition: string.c:80
static APTTYPEQUALIFIER * qualifier
Definition: compobj.c:79
const WCHAR * str
Definition: dhcpd.h:62
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define PLUS
Definition: sprintf.c:24
#define ZEROPAD
Definition: sprintf.c:22
static int skip_atoi(const char **s)
Definition: sprintf.c:79
#define LEFT
Definition: sprintf.c:26
#define SPACE
Definition: sprintf.c:25
static char * stringw(char *buf, char *end, const wchar_t *sw, int len, int field_width, int precision, int flags)
Definition: sprintf.c:335
static char * numberf(char *buf, char *end, double num, int base, int size, int precision, int type)
Definition: sprintf.c:183
#define SPECIAL
Definition: sprintf.c:27
#define REMOVEHEX
Definition: sprintf.c:29
#define SIGN
Definition: sprintf.c:23
static __inline int _isinf(double __x)
Definition: sprintf.c:40
#define LARGE
Definition: sprintf.c:28
static __inline int _isnan(double __x)
Definition: sprintf.c:55
static int repeat
Definition: xmllint.c:137
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ _vsnwprintf()

◆ _vswprintf()

_CRTIMP int __cdecl _vswprintf ( wchar_t _Dest,
const wchar_t _Format,
va_list  _Args 
)

◆ _vswprintf_c()

_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)

◆ _wfdopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfdopen ( _In_ int  _FileHandle,
_In_z_ const wchar_t _Mode 
)

◆ _wfopen()

◆ _wfreopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfreopen ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _Mode,
_Inout_ FILE _OldFile 
)

Referenced by DllMain().

◆ _wfsopen()

_Check_return_ _CRTIMP FILE *__cdecl _wfsopen ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _Mode,
_In_ int  _ShFlag 
)

Referenced by LoadIniFile(), and WriteIniFile().

◆ _wperror()

◆ _wpopen()

_Check_return_ _CRTIMP FILE *__cdecl _wpopen ( _In_z_ const wchar_t _Command,
_In_z_ const wchar_t _Mode 
)

◆ _wremove()

_Check_return_ _CRTIMP int __cdecl _wremove ( _In_z_ const wchar_t _Filename)

◆ _wtempnam()

_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam ( _In_opt_z_ const wchar_t _Directory,
_In_opt_z_ const wchar_t _FilePrefix 
)

◆ _wtmpnam()

◆ clearerr()

_CRTIMP void __cdecl clearerr ( _Inout_ FILE _File)

Referenced by read_mbr_template().

◆ fclose()

Referenced by __CloseHandle(), _fcloseall(), _Filebuf_base::_M_close(), _pclose(), _rmtmp(), _wfreopen(), abort(), CCabinet::AddFile(), check_atari(), check_bitmap_data(), check_file_size(), check_for_files(), CheckForNewV3User(), cleanReq(), File::close(), CCabinet::Close(), close_backing_store(), close_file(), close_log_files(), close_merge_image(), CloseBookmarkFile(), CloseFile(), CloseTrace(), CCabinet::CommitDisk(), compare_export_(), compat_fclose(), config_load(), copyfont(), create_cache(), create_nls_file(), create_output_file(), create_sic(), CreateCaseDiff(), CreateSpecFile(), DbgHelpAddLineNumber(), CCFDATAStorage::Destroy(), disk_cleanup(), DllMain(), DoCreateEmptyFile(), DoCreateTestFile(), DoEntry(), DoGetPaths(), DoParsing(), DosBIOSInitialize(), DoSetPaths(), DoTestEntries(), DoTestEntry(), EndLog(), endnetconfig(), endrpcent(), errconfig(), export_all(), export_key(), export_registry_key(), ExportBinaryHive(), extract_test(), CCabinet::ExtractFile(), fclose_file_func(), figurefiletype(), file_exists(), fileClient(), FileExists(), ForF(), gen_add_list(), Generate(), generate_xa_rr_attributes(), get_ImageBase(), get_list_blocks(), get_subtests(), GetHostnameFromCommand(), getICMPStats(), getnetconfigent(), getnetid(), GetOurHostName(), getpublicandprivatekey(), getSection(), gl_check_inputrc_for_vi(), gl_histloadfile(), gl_histsavefile(), import_certs_from_file(), ImportRegistryFile(), InfHostOpenFile(), InfHostWriteFile(), init(), init_leases_list(), init_logger_addr(), TScript::initScript(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), CDFParser::Load(), Load_CP2Unicode_Table(), load_file(), Load_OEM2Unicode_Table(), LoadBootIni(), tinyxml2::XMLDocument::LoadFile(), LoadFile(), LoadFirewallPrefs(), LoadIniFile(), LoadPrefs(), LoadSystemIni(), log_file(), logMess(), LogOpen(), LogXfer(), main(), MainWndProc(), myClose(), of_help(), OpenBookmarkFile(), openSection(), OpenTmpBookmarkFile(), parse_switches(), parseAndPrintFile(), TANSIParser::ParseEscapeANSI(), PerformRegAction(), TANSIParser::PrintBuffer(), processRequest(), PutBookmark(), read_cache(), read_file(), read_input_file(), read_JPEG_file(), read_mbr_template(), read_quant_tables(), read_rcfile(), readAllPolygons(), readconfig(), ReadFromFile(), ReadHostsFile(), readSection(), recvrequest(), reg_import(), remglob(), ResourceToFile(), RunBookmarkEditor(), RunScript(), ruserpass(), tinyxml2::XMLDocument::SaveFile(), SavePrefs(), SdbCloseDatabase(), select_file_name(), send_file(), sendrequest(), ServiceMain(), set_LogFile(), CCabinet::SetCabinetReservedFile(), SpoolX(), START_TEST(), FstreamTest::tellp(), test___getmainargs(), test___getmainargs_parent(), test__wfopen_s(), test_asciimode(), test_asciimode2(), test_ctrlz(), Test_DelNodeA(), Test_DelNodeW(), test_fdopen(), test_fflush(), test_fgetc(), test_fgetwc(), test_fgetwc_locale(), test_fgetwc_unicode(), test_filbuf(), test_file_put_get(), test_file_truncate(), test_filemodeT(), test_fileops(), test_flsbuf(), test_fopen_fclose_fcloseall(), test_fopen_s(), test_fprintf(), test_fputc(), test_fputwc(), test_invalid_stdin_child(), test_pipes(), test_readboundary(), test_readmode(), test_searchenv(), test_unlink(), test_write_flush(), CCFDATAStorage::Truncate(), unpack_iso(), verify_output_file(), wmain(), wpp_default_close(), write_casemap_file(), write_client(), write_dlldata(), write_dlldata_list(), write_header(), write_id_data(), write_if_change(), write_JPEG_file(), write_local_stubs(), write_one_file(), write_proxies(), write_regscript(), write_server(), directedLine::writeAllPolygons(), CCabinet::WriteFileToScratchStorage(), WriteIniFile(), XCOPY_ProcessExcludeFile(), xkeymap_from_locale(), xkeymap_read(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemoryDump(), xsltDocumentElem(), CDFParser::~CDFParser(), FileReporter::~FileReporter(), and TANSIParser::~TANSIParser().

◆ fcloseall()

◆ fdopen()

◆ feof()

◆ ferror()

◆ fflush()

Referenced by alarm_intr(), cd(), cdup(), check_blocks(), cmdabort(), cmdscanner(), CmpFileFlush(), command(), confirm(), dataconn(), delete(), disk_ioctl(), do_chmod(), domacro(), domap(), doproxy(), DoSetPaths(), dprintf(), eprintf(), Error(), fclose(), fsetmode(), get_key(), GetCmd(), getit(), GetPass(), getreply(), globulize(), help(), hookup(), initconn(), InputChar(), InteractiveConsole(), lcd(), LocalListCmd(), log_debug(), log_hexdump(), login(), logMess(), ls(), macdef(), main(), makedir(), mdelete(), mget(), mls(), modtime(), MonitorChildThread(), mput(), msvcrt_flush_all_buffers(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), newer(), OpenMsg(), OpenPager(), PrintF(), PrintStartupBanner(), PromptForBookmarkName(), proxtrans(), PrPhilBar(), PrStatBar(), ptransfer(), put(), PutCmd(), pwd(), query_done(), quote(), recvrequest(), remglob(), removedir(), rename_file(), renamefile(), restart(), rewrite_client_leases(), SaveCurrentAsBookmark(), SaveUnsavedBookmark(), sendrequest(), SendTelnetInterrupt(), serial_create(), setbell(), setcase(), setcr(), setdebug(), setform(), setglob(), sethash(), setnmap(), setntrans(), setpassive(), setpeer(), setport(), setprompt(), setrunique(), setstruct(), setsunique(), settrace(), settype(), setvbuf(), setverbose(), shell(), site(), sizecmd(), START_TEST(), status(), test_fflush(), test_write_flush_size(), usage(), user(), wintirpc_debug(), write_client_lease(), write_one_file(), WriteBmLine(), xdrstdio_destroy(), and FileReporter::~FileReporter().

◆ fgetc()

◆ fgetchar()

◆ fgetpos()

◆ fgets()

◆ fgetwc()

◆ fgetws()

_Check_return_opt_ _CRTIMP wchar_t *__cdecl fgetws ( _Out_writes_z_(_SizeInWords) wchar_t _Dst,
_In_ int  _SizeInWords,
_Inout_ FILE _File 
)

◆ fileno()

_Check_return_ _CRTIMP int __cdecl fileno ( _In_ FILE _File)

◆ flushall()

◆ fopen()

_Check_return_ _CRTIMP FILE *__cdecl fopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode 
)

Referenced by CCabinet::AddFile(), tinyxml2::callfopen(), check_atari(), check_bitmap_data(), check_for_files(), CheckForNewV3User(), CCabinet::CommitDisk(), compare_export_(), compat_fopen(), config_load(), copyfont(), CCFDATAStorage::Create(), create_cache(), create_nls_file(), CreateCaseDiff(), DbgHelpAddLineNumber(), disk_openimage(), DoEntry(), DoTestEntries(), DoTestEntry(), EndLog(), ExportBinaryHive(), extract_test(), CCabinet::ExtractFile(), figurefiletype(), file_exists(), fileClient(), FileExists(), FileReporter::FileReporter(), fopen_file_func(), fopen_s(), gen_add_list(), Generate(), generate_xa_rr_attributes(), get_ImageBase(), get_list_blocks(), get_subtests(), GetHostnameFromCommand(), getICMPStats(), getnetconfigent(), getnetid(), GetOurHostName(), getpublicandprivatekey(), getrpcent(), getSection(), gl_check_inputrc_for_vi(), gl_histloadfile(), gl_histsavefile(), InfHostOpenFile(), InfHostWriteFile(), init(), init_client(), init_leases_list(), init_logger_addr(), init_proxy(), init_server(), TScript::initScript(), jpeg_open_backing_store(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), CDFParser::Load(), Load_CP2Unicode_Table(), load_file(), Load_OEM2Unicode_Table(), LoadFile(), LoadFirewallPrefs(), LoadPrefs(), log_file(), logMess(), LogOpen(), LogXfer(), main(), MainWndProc(), CCabinet::Open(), File::open(), open_log_files(), open_merge_image(), OpenBookmarkFile(), openSection(), OpenTmpBookmarkFile(), OpenTrace(), parse_switches(), parseAndPrintFile(), TANSIParser::ParseEscapeANSI(), pfopen(), processRequest(), read_cache(), read_file(), read_input_file(), read_JPEG_file(), read_mbr_template(), read_quant_tables(), read_rcfile(), readAllPolygons(), readconfig(), recvrequest(), remglob(), ResourceToFile(), rewrite_client_leases(), RunBookmarkEditor(), ruserpass(), SavePrefs(), SdbpCreate(), select_file_name(), send_file(), sendrequest(), set_LogFile(), CCabinet::SetCabinetReservedFile(), setnetconfig(), setrpcent(), SpoolX(), START_TEST(), TANSIParser::TANSIParser(), FstreamTest::tellp(), test___getmainargs(), test___getmainargs_parent(), test__wfopen_s(), test_asciimode(), test_asciimode2(), test_ctrlz(), Test_DelNodeA(), test_fflush(), test_fgetc(), test_fgetwc(), test_fgetwc_locale(), test_fgetwc_unicode(), test_filbuf(), test_file_put_get(), test_filemodeT(), test_fileops(), test_flsbuf(), test_fopen_fclose_fcloseall(), test_fopen_s(), test_fprintf(), test_fputc(), test_fputwc(), test_readboundary(), test_searchenv(), test_unlink(), test_write_flush(), CCFDATAStorage::Truncate(), unpack_iso(), wintirpc_debug(), wpp_default_open(), write_casemap_file(), write_client_lease(), write_dlldata(), write_dlldata_list(), write_header(), write_id_data(), write_if_change(), write_JPEG_file(), write_local_stubs(), write_one_file(), write_regscript(), directedLine::writeAllPolygons(), CCabinet::WriteFileToScratchStorage(), CDFParser::WriteInfLine(), xkeymap_open(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemoryDump(), and xsltDocumentElem().

◆ fprintf()

_Check_return_opt_ _CRTIMP int __cdecl fprintf ( _Inout_ FILE _File,
_In_z_ _Printf_format_string_ const char _Format,
  ... 
)

Referenced by __report_error(), __rpc_broadenable(), __rpcb_findaddr_timed(), __xprt_do_unregister(), _amsg_exit(), _assert(), _chm_decompress_block(), _getgroups(), _getopt_internal_r(), _svcauth_gss(), _TIFFPrettyPrintField(), _TIFFprintAsciiBounded(), _TIFFprintAsciiTag(), _TIFFPrintField(), _TIFFPrintFieldInfo(), _vwarnx(), aargh(), abort(), add_cache(), add_hash(), adns__vdiag(), adnsfail(), ApplyOrdinals(), arg_get_long(), arg_get_utf8(), assign_file_addresses(), assign_stub_out_args(), attributeDeclDebug(), authgss_create(), authgss_create_default(), authgss_destroy(), authgss_validate(), BackToTop(), bezierPatchMeshMake(), bezierPatchMeshNumTriangles(), bezierPatchMeshPutPatch(), buffered_fullread(), build_huffman_tree(), build_tree(), byte_till_end(), cdataBlockDebug(), change_section_attribs(), charactersDebug(), chat(), check_cache(), check_entropy(), check_for_files(), check_lame_tag(), CheckForNewV3User(), checkRecv(), CheckTestFile(), chmc_add_entry(), chmc_crunch_lzx(), chmc_section_create(), clear_output_vars(), ClickProc(), clnt_cb_thread(), clnt_pcreateerror(), clnt_perrno(), clnt_perror(), clnt_vc_create(), clnt_vc_destroy(), CloseTrace(), CommandShell(), commentDebug(), configparseerr(), ConvertCoffs(), ConvertStabs(), copyfont(), create_cache(), CreateOutputFile(), CreateSpecFile(), CreateTestDir(), CreateTestFile(), directedLine::cutoffPolygon(), dataconn(), DBG_check(), DbgHelpAddLineNumber(), DbgHelpAddStringToTable(), debug_error(), declare_stub_args(), decode_header(), decode_the_frame(), decodeA(), die(), disk_enum_devices(), display_dhcp_packet(), RdpClientUI::Display_DrawText(), do_layer2(), do_rva(), do_test(), do_write_c_method_def(), DoDllRegisterServer(), DoDllUnregisterServer(), DoRegServer(), DoService(), DoTestEntries(), DoUnregServer(), dprintf(), dump_tree(), dump_var_desc(), DumpCharacterFontData(), DumpFont(), dumpHex(), dumpStr(), dumptype(), DwExecIntruction(), elementDeclDebug(), encodeA(), FileReporter::end(), end_cplusplus_guard(), endDocumentDebug(), endElementDebug(), endElementNsDebug(), OpenGLSurfaceEvaluator::endmap2f(), endnetpath(), entityDeclDebug(), eprintf(), error(), FileReporter::error(), Error(), ErrorExit(), ErrorHook(), Slicer::evalStream(), ewmh_get_window_desktop(), ExecuteKill(), ExecuteTest(), externalSubsetDebug(), failure_errno(), failure_status(), fatal_error(), Fatalv(), figurefiletype(), file_write(), fileClient(), fill_boot_desc(), find_lease(), find_match_at(), find_or_create_directory(), FindFonts(), fputcSocket(), fputSocket(), frame_buffercheck(), frame_cpu_opt(), free_variable(), fs_flush(), FTC_MruNode_Prepend(), FTC_MruNode_Remove(), FTC_MruNode_Up(), FTPPerror(), gen_proxy(), gen_stub(), gen_stub_thunk(), Generate(), generate_one_directory(), generate_xa_rr_attributes(), generic_msg(), get_current_desktop(), get_current_workarea(), get_property_value(), getbits(), getclnthandle(), GetCmd(), getEntityDebug(), GetExportsFromFile(), getnetconfig(), getnetconfigent(), getnetid(), getopt(), Getopt(), getpacket(), getParameterEntityDebug(), getpublicandprivatekey(), gl_histsavefile(), gluNurbsSurface(), hasExternalSubsetDebug(), hasInternalSubsetDebug(), help(), HexDump(), hookup(), ignorableWhitespaceDebug(), III_get_side_info(), indent(), init_begin(), init_finish(), init_server(), InitConnectionInfo(), InitUserInfo(), insert_file_entry(), internalSubsetDebug(), iso_connect(), isohybrid_error(), isohybrid_warning(), isStandaloneDebug(), Jobs(), kbd_c(), kbd_def(), kbd_h(), kbd_rc(), KmtUnloadDriver(), KmtUnloadDriverKeepService(), lhash_val_of_name_sys(), LIBXML_ATTR_FORMAT(), ListCmd(), LoadProc(), LocalChdirCmd(), LocalListCmd(), log_debug(), log_hexdump(), login(), logMess(), LogOpen(), LogXfer(), Ls(), Ls1(), LsC(), LsL(), lz_analyze_block(), lz_compress(), lzx_compress_block(), lzx_output_literal(), lzx_output_match(), lzx_write_bits(), lzx_write_compressed_literals(), lzx_write_compressed_tree(), main(), make_listening_socket(), MakeArgv(), MC_sweepY(), merge_remaining_entries(), MergeStabsAndCoffs(), FileReporter::message(), MlsCmd(), mpg123_fmt2(), mpg123_fmt_all(), mpg123_fmt_none(), msg(), msg_spy_find_next_msg(), names_dump(), nanox_event(), nc_perror(), netfinger(), next_marker(), normalize(), notationDeclDebug(), OnCreate(), OOM(), OpenBookmarkFile(), OpenCmd(), OpenMsg(), OpenTmpBookmarkFile(), OpenTrace(), out_params(), OutOfMemory(), output_message(), Output_stublabel(), OutputError(), OutputHeader_asmstub(), OutputHeader_def(), OutputHeader_stub(), OutputLine_asmstub(), OutputLine_def(), OutputLine_def_GCC(), OutputLine_def_MS(), OutputLine_stub(), PageCmd(), panic(), parse_arguments(), parse_cmdlineargs(), parse_dhcp_options(), parse_new_id3(), parse_switches(), parseAndPrintFile(), ParseFile(), parsePath(), ParsePEHeaders(), pdie(), pipeClient(), pipeServer(), PlotCharacter(), pp_add_macro(), pp_internal_error(), pp_pop_if(), pp_push_if(), PredictorPrintDir(), PreInit(), print(), print_access_mask(), print_condwait_status(), print_create_attributes(), print_disconnect_reason(), print_disposition(), print_dnsfail(), print_error(), print_file_id_both_dir_info(), print_hexbuf(), print_hexbuf_no_asci(), print_phase_basetype(), print_rpc_gss_sec(), print_share_mode(), print_sr_status_flags(), print_text_marker(), PrintHosts(), printline(), PrintName(), PrintNameTable(), printopts(), PrintStartupBanner(), FileReporter::printSummary(), PrintUsage(), process_comment(), process_data(), process_dhcp_packet(), process_extra(), process_file(), process_long_option(), process_picture(), RequestHandler::process_request(), process_text(), processingInstructionDebug(), ProcessRelocations(), proclog(), FileReporter::progress(), promote_framename(), proxy_free_variables(), PrPhilBar(), PrSizeAndRateMeter(), PrStatBar(), PutBookmark(), PutCmd(), rdp2vnc_connect(), rdpsnd_process_negotiate(), read_frame(), read_header_file(), read_JPEG_file(), read_merging_directory(), read_password(), read_quant_tables(), read_rcfile(), read_stdin(), recvrequest(), referenceDebug(), registerNode(), release_lease(), resolveEntityDebug(), rpc_broadcast_exp(), WriterThread::Run(), run_rapps(), RunBatch(), RunBookmarkEditor(), ruserpass(), SaveCurrentAsBookmark(), SavePrefs(), scan_directory_tree(), search_tree_file(), select_transform(), sendrequest(), SendTelnetInterrupt(), ServeOneClient(), Server(), ServiceCtrlHandler(), ServiceMain(), set_quant_slots(), set_sample_factors(), SetAnonPass(), SetAutoAscii(), SetAutoResume(), SetAutoSaveChangesToExistingBookmarks(), SetConfirmClose(), SetConnTimeout(), SetCtrlTimeout(), setDocumentLocatorDebug(), SetLogSize(), SetNoAds(), SetOneTimeMessages(), SetPager(), SetPassive(), SetRedialDelay(), SetSavePasswords(), SetSOBufsize(), SetStartupURL(), setup_tables(), SetXferTimeout(), SetXtermTitle(), SetXtTitle(), showVersion(), sic_list(), skip_junk(), sort_n_finish(), SpoolGetCmd(), SpoolPutCmd(), SpoolX(), start_cplusplus_guard(), startDocumentDebug(), startElementDebug(), startElementNsDebug(), StartServiceThread(), sunboot_write(), susage(), svc_getreqset(), svcauth_gss_accept_sec_context(), sweepY(), synth_ntom_set_step(), sysfail(), test_decodeNameConstraints(), test_fprintf(), testSAX(), textAsk(), textDelta(), textStep(), TIFFPrintDirectory(), TIM_SORT_RESIZE(), Trace(), try_query_param(), try_start_stop(), tx_compress_dxtn(), ui_create_window(), ui_draw_text(), unimpl(), unixErrorHandler(), unixWarningHandler(), unparsedEntityDeclDebug(), UpdateSCMStatus(), RequestHandler::urldec(), usage(), Usage(), usageerr(), user(), userlist(), verr(), verrx(), vwarn(), vwarnx(), WaitForConnect(), warning(), wave_out_close(), wave_out_open(), wave_out_set_format(), wave_out_volume(), wave_out_write(), wetwork(), Win32ErrorHandler(), Win32WarningHandler(), WindowThreadProc(), WinMain(), wmain(), write_args(), write_client_call_routine(), write_client_func_decl(), write_client_ifaces(), write_client_lease(), write_client_routines(), write_clientinterfacedecl(), write_coclass(), write_coclass_forward(), write_com_interface_end(), write_com_interface_start(), write_context_handle_rundowns(), write_cpp_method_def(), write_declaration(), write_dispatchtable(), write_dlldata_list(), write_endpoints(), write_enums(), write_exceptions(), write_expr(), write_expr_eval_routine_list(), write_expr_eval_routines(), write_fields(), write_files(), write_formatstringsdecl(), write_forward(), write_full_pointer_free(), write_full_pointer_init(), write_func_param_struct(), write_function_proto(), write_function_stub(), write_generic_handle_routines(), write_guid(), write_header(), write_header_stmts(), write_id_data(), write_id_guid(), write_if_change(), write_implicithandledecl(), write_import(), write_inline_wrappers(), write_ip_tfs(), write_JPEG_file(), write_library(), write_line(), write_local_stubs(), write_locals(), write_method_macro(), write_method_proto(), write_nonsimple_pointer(), write_one_file(), write_packet(), write_parameter_conf_or_var_exprs(), write_parameters_init(), write_pointer_left(), write_proxy(), write_proxy_routines(), write_remoting_arg(), write_rpc_interface_end(), write_rpc_interface_start(), write_serialize_function(), write_server_stmts(), write_serverinterfacedecl(), write_stdout(), write_stub_methods(), write_stubdescdecl(), write_stubdescriptor(), write_type_definition(), write_type_left(), write_type_right(), write_type_v(), write_typedef(), write_user_quad_list(), write_user_types(), write_uuid_decl(), directedLine::writeAllPolygons(), WriteBmLine(), WriteDefaultFirewallPrefs(), WriteTable(), xmlCheckVersion(), xmlDictAddQString(), xmlDictAddString(), xmlDictCreate(), xmlDictCreateSub(), xmlDictGrow(), xmlInitializeGlobalState(), xmllintExternalEntityLoader(), xmlMemDisplay(), xmlMemDisplayLast(), xmlMemShow(), xmlPrintURI(), xprt_register(), xsltDebugDumpExtensions(), xsltDebugDumpExtensionsCallback(), xsltDebugDumpExtModulesCallback(), xsltInitAllDocKeys(), xsltInitCtxtKey(), xsltInitCtxtKeys(), xsltInitDocKeyTable(), xsltPatPushState(), and xsltTestCompMatch().

◆ fputc()

◆ fputchar()

◆ fputs()

◆ fputwc()

◆ fputws()

◆ fread()

◆ freopen()

_Check_return_ _CRTIMP FILE *__cdecl freopen ( _In_z_ const char _Filename,
_In_z_ const char _Mode,
_Inout_ FILE _File 
)

Referenced by main(), and xfwrite().

◆ fscanf()

◆ fseek()

◆ fsetpos()

_Check_return_opt_ _CRTIMP int __cdecl fsetpos ( _Inout_ FILE _File,
_In_ const fpos_t _Pos 
)

Referenced by test_fileops().

◆ ftell()

◆ fwprintf()

◆ fwrite()

◆ fwscanf()

_Check_return_ _CRTIMP int __cdecl fwscanf ( _Inout_ FILE _File,
_In_z_ _Scanf_format_string_ const wchar_t _Format,
  ... 
)

◆ getc()

◆ getchar()

Definition at line 3627 of file file.c.

3628{
3629 return fgetc(stdin);
3630}

Referenced by FSE_normalizeCount(), get_key(), macdef(), main(), Main(), and printWindowsError().

◆ gets()

_CRTIMP char *__cdecl gets ( char _Buffer)

Definition at line 3643 of file file.c.

3644{
3645 int cc;
3646 char * buf_start = buf;
3647
3649 for(cc = fgetc(stdin); cc != EOF && cc != '\n';
3650 cc = fgetc(stdin))
3651 if(cc != '\r') *buf++ = (char)cc;
3652
3653 *buf = '\0';
3654
3655 TRACE("got '%s'\n", buf_start);
3657 return buf_start;
3658}
#define EOF
Definition: stdio.h:24

Referenced by cd(), cmdscanner(), confirm(), delete(), do_chmod(), domacro(), doproxy(), getit(), macdef(), main(), makedir(), mdelete(), mget(), mls(), modtime(), mput(), put(), quote(), removedir(), renamefile(), setnmap(), setpeer(), site(), sizecmd(), and user().

◆ getw()

◆ getwc()

◆ perror()

◆ printf()

◆ putc()

◆ putchar()

◆ puts()

◆ putw()

_Check_return_opt_ _CRTIMP int __cdecl putw ( _In_ int  _Ch,
_Inout_ FILE _File 
)

◆ putwc()

◆ putwchar()

◆ remove()

_Check_return_ _CRTIMP int __cdecl remove ( _In_z_ const char _Filename)

◆ rename()

_Check_return_ _CRTIMP int __cdecl rename ( _In_z_ const char _OldFilename,
_In_z_ const char _NewFilename 
)

◆ rewind()

◆ rmtmp()

◆ scanf()

Referenced by _tmain(), and main().

◆ setbuf()

◆ setvbuf()

◆ snprintf()

int __cdecl snprintf ( char s,
size_t  n,
const char format,
  ... 
)

◆ snwprintf()

_CRTIMP int __cdecl snwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
  ... 
)

◆ sprintf()

int __cdecl sprintf ( char _Dest,
const char _Format,
  ... 
)

Definition at line 768 of file utprint.c.

772{
774 int Length;
775
776
779 va_end (Args);
780
781 return (Length);
782}
char ** Args
Definition: acdebug.h:353
#define ACPI_UINT32_MAX
Definition: actypes.h:66
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define vsnprintf
Definition: tif_win32.c:406
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433

◆ sscanf()

_Check_return_ _CRTIMP int __cdecl sscanf ( _In_z_ const char _Src,
_In_z_ _Scanf_format_string_ const char _Format,
  ... 
)

Referenced by __rpc_get_time_offset(), Addhost(), ata_bblk(), cache_entry_create(), check_version(), CheckForNewV3User(), create_sic(), CRYPT_AsnEncodeOid(), Deletehost(), DissectArcPath2(), doChild(), DoCOMPANY(), DoCOPYRIGHT(), DoDESCRIPTIONS(), DoKBD(), DoKEYNAME(), DoLANGUAGENAMES(), DoLAYOUT(), DoLOCALENAME(), DoSHIFTSTATE(), DoVERSION(), error(), find_typelib_key(), FTP_DoPassive(), FTP_ParseNextFile(), FTPFileSize(), getCharacterInfo(), getit(), GetOptUlong(), GetStartSpoolDate(), getVKNum(), handle_address_cmd(), handle_escape_cmd(), initconn(), is_float(), is_guid(), is_integer(), isOffset(), jinit_memory_mgr(), load_persistent_cookie(), main(), match_mod(), modtime(), my_atoi(), netname2user(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), OpenBookmarkFile(), optionParse(), parse_arguments(), parse_list_response(), parse_stat_response(), parse_switches(), parse_uidl_response(), ParseHostLine(), Passive(), set_quality_ratings(), set_quant_slots(), set_sample_factors(), SkipLines(), SLTG_DoRefs(), START_TEST(), test_enumdisplaydevices(), test_enumdisplaydevices_adapter(), test_enumdisplaydevices_monitor(), Test_ifuncs(), test_listbox_dlgdir(), test_listbox_LB_DIR(), test_retval(), test_strdate(), test_strtime(), TestCrossProcessDecrypt(), TLB_GUIDFromString(), translate_line(), uaddr_to_sockaddr(), UnDate(), UnDosLine(), UnLslRLine(), UnMDTMDate(), UnMlsT(), URLCopyToken(), RequestHandler::urldec(), UXTHEME_RestoreSystemMetrics(), wined3d_adapter_init_gl_caps(), xmlInitMemory(), and xsltNumberComp().

◆ swprintf()

static _Check_return_opt_ int __cdecl swprintf ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
  ... 
)
inlinestatic

Definition at line 958 of file stdio.h.

963 {
964 int ret;
966
969 va_end(args);
970 return ret;
971 }
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
_In_ size_t _In_z_ _Printf_format_string_ const char * _Format
Definition: time.h:147
_In_ size_t _SizeInWords
Definition: time.h:309
int ret

◆ swscanf()

◆ tempnam()

_CRTIMP char *__cdecl tempnam ( _In_opt_z_ const char _Directory,
_In_opt_z_ const char _FilePrefix 
)

Referenced by get_subtests(), and run_tests().

◆ tmpfile()

Definition at line 3912 of file file.c.

3913{
3914 char *filename = tmpnam(NULL);
3915 int fd;
3916 FILE* file = NULL;
3917
3918 LOCK_FILES();
3921 if (fd != -1 && (file = msvcrt_alloc_fp()))
3922 {
3923 if (msvcrt_init_fp(file, fd, _IORW) == -1)
3924 {
3925 file->_flag = 0;
3926 file = NULL;
3927 }
3928 else file->_tmpfname = _strdup(filename);
3929 }
3930
3931 if(fd != -1 && !file)
3932 _close(fd);
3933 UNLOCK_FILES();
3934 return file;
3935}
#define _strdup
Definition: debug_ros.c:7
#define _O_RDWR
Definition: cabinet.h:39
#define _O_BINARY
Definition: cabinet.h:51
#define _O_TEMPORARY
Definition: cabinet.h:44
#define _O_CREAT
Definition: cabinet.h:46
#define _S_IWRITE
Definition: cabinet.h:33
#define _S_IREAD
Definition: cabinet.h:34
#define _IORW
Definition: stdio.h:135
const char * filename
Definition: ioapi.h:137
static FILE * msvcrt_alloc_fp(void)
Definition: file.c:360
int CDECL _open(const char *path, int flags,...)
Definition: file.c:2001
int CDECL _close(int fd)
Definition: file.c:931
char *CDECL tmpnam(char *s)
Definition: file.c:3848
static int msvcrt_init_fp(FILE *file, int fd, unsigned stream_flags)
Definition: file.c:382
static int fd
Definition: io.c:51

Referenced by CCFDATAStorage::Create(), create_temp_binary(), HANDLE_CustomType7(), jpeg_open_backing_store(), JSPROXY_InternetInitializeAutoProxyDll(), open_file_test(), patch_file(), test_color_contexts(), test_CreateDirectoryA(), test_CryptCATAdminAddRemoveCatalog(), test_GetNamedSecurityInfoA(), test_install_class(), test_retrieveObjectByUrl(), test_SetupCopyOEMInf(), transfer_file_http(), CCFDATAStorage::Truncate(), VerInstallFileA(), and VerInstallFileW().

◆ tmpnam()

◆ ungetc()

◆ ungetwc()

_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc ( _In_ wint_t  _Ch,
_Inout_ FILE _File 
)

◆ unlink()

_Check_return_ _CRTIMP int __cdecl unlink ( _In_z_ const char _Filename)

◆ vfprintf()

◆ vfscanf()

int __cdecl vfscanf ( FILE *__restrict__  fp,
const char Format,
va_list  argp 
)

◆ vfwprintf()

◆ vfwscanf()

_CRTIMP int __cdecl vfwscanf ( FILE ,
const wchar_t ,
va_list   
)

◆ vprintf()

◆ vscanf()

int __cdecl vscanf ( const char *__restrict__  Format,
va_list  argp 
)

◆ vsnprintf()

_Check_return_opt_ _CRTIMP int __cdecl vsnprintf ( _Out_writes_(_MaxCount) char _DstBuf,
_In_ size_t  _MaxCount,
_In_z_ _Printf_format_string_ const char _Format,
va_list  _ArgList 
)

Definition at line 910 of file stubs.c.

915{
917 return 0;
918}
#define UNIMPLEMENTED
Definition: stubs.c:5

◆ vsnwprintf()

__CRT_INLINE int __cdecl vsnwprintf ( wchar_t s,
size_t  n,
const wchar_t format,
va_list  arg 
)

Definition at line 931 of file stdio.h.

932 {
933#ifdef _MSC_VER
934#pragma warning(push)
935#pragma warning(disable:28719) /* disable banned api usage warning */
936#endif /* _MSC_VER */
937 return _vsnwprintf(s,n,format,arg);
938#ifdef _MSC_VER
939#pragma warning(pop)
940#endif /* _MSC_VER */
941 }
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLdouble n
Definition: glext.h:7729

Referenced by EfiPrintf(), and pSetupDebugPrint().

◆ vsprintf()

◆ vsscanf()

int __cdecl vsscanf ( const char *__restrict__  _Str,
const char *__restrict__  Format,
va_list  argp 
)

◆ vswprintf()

static _Check_return_opt_ int __cdecl vswprintf ( _Out_writes_z_(_SizeInWords) wchar_t _DstBuf,
_In_ size_t  _SizeInWords,
_In_z_ _Printf_format_string_ const wchar_t _Format,
va_list  _ArgList 
)
inlinestatic

Definition at line 977 of file stdio.h.

982 {
983 return _vsnwprintf(_DstBuf, _SizeInWords, _Format, _ArgList);
984 }

Referenced by BlStatusPrint(), MSI_OpenQuery(), and MSI_QueryGetRecord().

◆ vswscanf()

_CRTIMP int __cdecl vswscanf ( const wchar_t ,
const wchar_t ,
va_list   
)

◆ vwprintf()

◆ vwscanf()

_CRTIMP int __cdecl vwscanf ( const wchar_t ,
va_list   
)

◆ wprintf()

◆ wscanf()

Referenced by wmain().

Variable Documentation

◆ _commode

_CRTIMP int _commode
extern

Definition at line 31 of file environ.c.

Referenced by Test__commode().

◆ _off64_t

__MINGW_EXTENSION typedef long long _off64_t

Definition at line 82 of file stdio.h.

◆ fpos_t

__MINGW_EXTENSION typedef long long fpos_t

Definition at line 111 of file stdio.h.

Referenced by test_filbuf(), test_fileops(), and test_write_flush_size().

◆ off64_t

__MINGW_EXTENSION typedef long long off64_t

Definition at line 84 of file stdio.h.