Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
sfvscanf.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include <sfio/sfhdr.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <util/gv_ctype.h>
Include dependency graph for sfvscanf.c:

Go to the source code of this file.

Macros

#define MAXWIDTH   INT_MAX
 
#define SFGETC(f, c)   (((c) = getc(f)) < 0 ? c : (++n_input, c))
 
#define SFUNGETC(f, c)
 

Functions

static const unsigned char * setclass (const unsigned char *form, bool *accept)
 
int sfvscanf (FILE *f, Sffmt_t *ft)
 

Macro Definition Documentation

◆ MAXWIDTH

#define MAXWIDTH   INT_MAX

Definition at line 25 of file sfvscanf.c.

◆ SFGETC

#define SFGETC (   f,
 
)    (((c) = getc(f)) < 0 ? c : (++n_input, c))

◆ SFUNGETC

#define SFUNGETC (   f,
 
)
Value:
do { \
ungetc((c), (f)); \
--n_input; \
} while (0)

Function Documentation

◆ setclass()

static const unsigned char * setclass ( const unsigned char *  form,
bool *  accept 
)
static
Parameters
formformat string
acceptaccepted characters are set to 1

Definition at line 31 of file sfvscanf.c.

Referenced by sfvscanf().

Here is the caller graph for this function:

◆ sfvscanf()

int sfvscanf ( FILE *  f,
Sffmt_t ft 
)
Parameters
ffile to be scanned
ftFormatting instructions

Definition at line 68 of file sfvscanf.c.

References _Sfcv36, _Sfcv64, _Sffmtintf, _Sftype, Argv_t::d, dot, _sffmt_s::extf, flags, _sffmt_s::flags, FMTCMP, FMTGET, FMTSET, _sffmt_s::form, FP_SET, Argv_t::ft, gv_isdigit(), gv_isspace(), Argv_t::i, LEFTP, Argv_t::ll, Argv_t::lu, MAXWIDTH, NULL, RIGHTP, Argv_t::s, setclass(), SF_MAXDIGITS, SF_RADIX, SFFMT_ALTER, SFFMT_FLOAT, SFFMT_IFLAG, SFFMT_INT, SFFMT_JFLAG, SFFMT_LDOUBLE, SFFMT_LLONG, SFFMT_LONG, SFFMT_MINUS, SFFMT_SHORT, SFFMT_SKIP, SFFMT_SSHORT, SFFMT_TFLAG, SFFMT_TYPES, SFFMT_UINT, SFFMT_VALUE, SFFMT_ZFLAG, SFGETC, SFUNGETC, _sffmt_s::size, uchar, ulong, ushort, and Argv_t::vp.

Referenced by scan().

Here is the call graph for this function:
Here is the caller graph for this function: