fehQlibs 28
Qlibs
Loading...
Searching...
No Matches
scan.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define scan_dnum(s, X)
#define scan_xnum(s, X)

Functions

unsigned int scan_8long (const char *, unsigned long *)
unsigned int scan_uint (const char *, unsigned int *)
unsigned int scan_ulong (const char *, unsigned long *)
unsigned int scan_long (const char *, long *)
unsigned int scan_0x (const char *, unsigned int *)
unsigned int scan_xint (const char *, unsigned int *)
unsigned int scan_xlong (const char *, unsigned long *)

Macro Definition Documentation

◆ scan_dnum

#define scan_dnum ( s,
X )
Value:
_Generic((X),\
unsigned char*: scan_uint, \
unsigned int *: scan_uint, \
unsigned long *: scan_ulong, \
long *: scan_long \
) (s,X)
unsigned int scan_long(const char *, long *)
Definition scan.c:62
unsigned int scan_uint(const char *, unsigned int *)
Definition scan.c:50
unsigned int scan_ulong(const char *, unsigned long *)
Definition scan.c:36
#define X(e, s)
Definition errstr.c:10

Definition at line 8 of file scan.h.

◆ scan_xnum

#define scan_xnum ( s,
X )
Value:
_Generic((X),\
unsigned int *: scan_xint, \
unsigned long *: scan_xlong \
) (s,X)
unsigned int scan_xint(const char *, unsigned int *)
Definition scan.c:101
unsigned int scan_xlong(const char *, unsigned long *)
Definition scan.c:116

Definition at line 15 of file scan.h.

Function Documentation

◆ scan_0x()

unsigned int scan_0x ( const char * s,
unsigned int * u )
extern

Definition at line 87 of file scan.c.

Here is the call graph for this function:

◆ scan_8long()

unsigned int scan_8long ( const char * s,
unsigned long * u )
extern

Definition at line 20 of file scan.c.

◆ scan_long()

unsigned int scan_long ( const char * s,
long * i )
extern

Definition at line 62 of file scan.c.

Here is the call graph for this function:

◆ scan_uint()

unsigned int scan_uint ( const char * s,
unsigned int * u )
extern

Definition at line 50 of file scan.c.

Here is the call graph for this function:

◆ scan_ulong()

unsigned int scan_ulong ( const char * s,
unsigned long * u )
extern

Definition at line 36 of file scan.c.

Here is the caller graph for this function:

◆ scan_xint()

unsigned int scan_xint ( const char * s,
unsigned int * i )
extern

Definition at line 101 of file scan.c.

Here is the call graph for this function:

◆ scan_xlong()

unsigned int scan_xlong ( const char * s,
unsigned long * u )
extern

Definition at line 116 of file scan.c.

Here is the call graph for this function: