ReactOS  0.4.13-dev-100-gc8611ae
scanf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _CHAR_   char
 
#define _EOF_   EOF
 
#define _EOF_RET   EOF
 
#define _ISSPACE_(c)   isspace(c)
 
#define _ISDIGIT_(c)   isdigit(c)
 
#define _WIDE2SUPPORTED_(c)   c /* FIXME: convert wide char to char */
 
#define _CHAR2SUPPORTED_(c)   c /* No conversion needed (char to char) */
 
#define _CHAR2DIGIT_(c, base)   char2digit((c), (base))
 
#define _BITMAPSIZE_   256
 
#define _GETC_(file)   (consumed++, fgetc(file))
 
#define _UNGETC_(nch, file)   do { ungetc(nch, file); consumed--; } while(0)
 
#define _LOCK_FILE_(file)   _lock_file(file)
 
#define _UNLOCK_FILE_(file)   _unlock_file(file)
 
#define _FUNCTION_   static int vfscanf_l(FILE* file, const char *format, _locale_t locale, __ms_va_list ap)
 
#define _SET_NUMBER_(type)   *va_arg(ap, type*) = negative ? -(LONGLONG)cur : cur
 

Functions

 if (! *format) return 0
 
 TRACE ("%p (%s)\n", file, debugstr_a(format))
 
 if (nch==_EOF_)
 
 if (!locale) locinfo
 
 if (nch!=_EOF_)
 
 TRACE ("returning %d\n", rd)
 

Variables

 _FUNCTION_
 
int rd = 0
 
int consumed = 0
 
int nch = _GETC_(file)
 
else locinfo = locale->locinfo
 
while format
 

Macro Definition Documentation

◆ _BITMAPSIZE_

#define _BITMAPSIZE_   256

Definition at line 45 of file scanf.h.

◆ _CHAR2DIGIT_

#define _CHAR2DIGIT_ (   c,
  base 
)    char2digit((c), (base))

Definition at line 44 of file scanf.h.

◆ _CHAR2SUPPORTED_

#define _CHAR2SUPPORTED_ (   c)    c /* No conversion needed (char to char) */

Definition at line 43 of file scanf.h.

◆ _CHAR_

#define _CHAR_   char

Definition at line 37 of file scanf.h.

◆ _EOF_

#define _EOF_   EOF

Definition at line 38 of file scanf.h.

◆ _EOF_RET

#define _EOF_RET   EOF

Definition at line 39 of file scanf.h.

◆ _FUNCTION_

#define _FUNCTION_   static int vfscanf_l(FILE* file, const char *format, _locale_t locale, __ms_va_list ap)

Definition at line 126 of file scanf.h.

◆ _GETC_

#define _GETC_ (   file)    (consumed++, fgetc(file))

Definition at line 119 of file scanf.h.

◆ _ISDIGIT_

#define _ISDIGIT_ (   c)    isdigit(c)

Definition at line 41 of file scanf.h.

◆ _ISSPACE_

#define _ISSPACE_ (   c)    isspace(c)

Definition at line 40 of file scanf.h.

◆ _LOCK_FILE_

_LOCK_FILE_ (   file)    _lock_file(file)

Definition at line 121 of file scanf.h.

◆ _SET_NUMBER_

#define _SET_NUMBER_ (   type)    *va_arg(ap, type*) = negative ? -(LONGLONG)cur : cur

◆ _UNGETC_

#define _UNGETC_ (   nch,
  file 
)    do { ungetc(nch, file); consumed--; } while(0)

Definition at line 120 of file scanf.h.

◆ _UNLOCK_FILE_

_UNLOCK_FILE_ (   file)    _unlock_file(file)

Definition at line 122 of file scanf.h.

Referenced by if().

◆ _WIDE2SUPPORTED_

#define _WIDE2SUPPORTED_ (   c)    c /* FIXME: convert wide char to char */

Definition at line 42 of file scanf.h.

Function Documentation

◆ if() [1/4]

if ( ! *  format)

◆ if() [2/4]

if ( nch  = _EOF_)

Definition at line 151 of file scanf.h.

151  {
153  return _EOF_RET;
154  }
#define _UNLOCK_FILE_(file)
Definition: scanf.h:122
#define _EOF_RET
Definition: scanf.h:39
Definition: fci.c:126

◆ if() [3/4]

if ( locale)

Definition at line 2647 of file btrfs.c.

2647  {
2648  ERR("out of memory\n");
2650  }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define ERR(fmt,...)
Definition: debug.h:109

Referenced by _Success_(), find_default_subvol(), find_disk_holes(), and look_for_roots().

◆ if() [4/4]

if ( nch!  = _EOF_)

Definition at line 712 of file scanf.h.

712  {
713  _UNGETC_(nch, file);
714  }
int nch
Definition: scanf.h:135
#define _UNGETC_(nch, file)
Definition: scanf.h:120
Definition: fci.c:126

◆ TRACE() [1/2]

TRACE ( "%p (%s)\n ,
file  ,
debugstr_a(format  
)

◆ TRACE() [2/2]

TRACE ( "returning %d\n ,
rd   
)

Variable Documentation

◆ _FUNCTION_

_FUNCTION_
Initial value:

Definition at line 132 of file scanf.h.

◆ consumed

◆ format

Definition at line 161 of file scanf.h.

◆ locinfo

else locinfo = locale->locinfo

◆ nch

nch = _GETC_(file)

Definition at line 135 of file scanf.h.

Referenced by if(), res_hnok(), test_recordWAVE(), and test_volume_dependence().

◆ rd