#include <stdarg.h>
#include <limits.h>
#include <wine/winternl.h>
#include <wine/debug.h>
#include "winesup.h"
#include "scanf.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (msvcrt) |
|
static int | char2digit (char c, int base) |
|
static int | wchar2digit (wchar_t c, int base) |
|
int CDECL | fscanf (FILE *file, const char *format,...) |
|
int CDECL | scanf (const char *format,...) |
|
int CDECL | fwscanf (FILE *file, const wchar_t *format,...) |
|
int CDECL | wscanf (const wchar_t *format,...) |
|
int CDECL | sscanf (const char *str, const char *format,...) |
|
int CDECL | swscanf (const wchar_t *str, const wchar_t *format,...) |
|
int CDECL | _cscanf (const char *format,...) |
|
int WINAPIV | _snwscanf (const wchar_t *input, size_t length, const wchar_t *format,...) |
|
int CDECL | _snscanf (const char *input, size_t length, const char *format,...) |
|
◆ CONSOLE
◆ STRING [1/4]
◆ STRING [2/4]
◆ STRING [3/4]
◆ STRING [4/4]
◆ STRING_LEN [1/2]
◆ STRING_LEN [2/2]
◆ WIDE_SCANF [1/3]
◆ WIDE_SCANF [2/3]
◆ WIDE_SCANF [3/3]
◆ _cscanf()
Definition at line 207 of file scanf.c.
208{
211
216}
static __ms_va_list valist
#define __ms_va_end(list)
#define __ms_va_start(list, arg)
◆ _snscanf()
Definition at line 237 of file scanf.c.
238{
241
246}
GLuint GLsizei GLsizei * length
GLenum GLenum GLenum input
◆ _snwscanf()
◆ char2digit()
Definition at line 41 of file scanf.c.
41 {
42 if ((
c>=
'0') && (
c<=
'9') && (
c<=
'0'+
base-1))
return (
c-
'0');
43 if (
base<=10)
return -1;
44 if ((
c>=
'A') && (
c<=
'Z') && (
c<=
'A'+
base-11))
return (
c-
'A'+10);
45 if ((
c>=
'a') && (
c<=
'z') && (
c<=
'a'+
base-11))
return (
c-
'a'+10);
46 return -1;
47}
◆ fscanf()
◆ fwscanf()
◆ scanf()
◆ sscanf()
◆ swscanf()
◆ wchar2digit()
Definition at line 52 of file scanf.c.
52 {
53 if ((
c>=
'0') && (
c<=
'9') && (
c<=
'0'+
base-1))
return (
c-
'0');
54 if (
base<=10)
return -1;
55 if ((
c>=
'A') && (
c<=
'Z') && (
c<=
'A'+
base-11))
return (
c-
'A'+10);
56 if ((
c>=
'a') && (
c<=
'z') && (
c<=
'a'+
base-11))
return (
c-
'a'+10);
57 return -1;
58}
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
msvcrt |
| ) |
|
◆ wscanf()