|
PatchworkOS
|
#include "scan.h"#include <ctype.h>#include <limits.h>#include <stdarg.h>#include <stddef.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include "common/digits.h"#include "user/common/file.h"Go to the source code of this file.
Functions | |
| static int | _scan_get (_format_ctx_t *ctx) |
| static void | _scan_unget (int c, _format_ctx_t *ctx) |
| static int | _scan_in_scanset (const char *scanlist, const char *end_scanlist, int rc) |
| const char * | _scan (const char *spec, _format_ctx_t *ctx) |
| const char * _scan | ( | const char * | spec, |
| _format_ctx_t * | ctx | ||
| ) |
Definition at line 117 of file scan.c.
References _digits, _scan_get(), _scan_in_scanset(), _scan_unget(), _format_ctx_t::arg, _format_ctx_t::base, _format_ctx_t::currentChars, EOF, _format_ctx_t::flags, FORMAT_CHAR, FORMAT_INTMAX, FORMAT_LDOUBLE, FORMAT_LLONG, FORMAT_LONG, FORMAT_POINTER, FORMAT_PTRDIFF, FORMAT_SHORT, FORMAT_SIZE, FORMAT_SUPPRESSED, FORMAT_UNSIGNED, isspace(), _format_ctx_t::maxChars, memchr(), NULL, _format_ctx_t::precision, SIZE_MAX, strtol, tolower(), _format_ctx_t::totalChars, va_arg, and _format_ctx_t::width.
|
static |
Definition at line 17 of file scan.c.
References _FILE_CHECK_AVAIL, _FILE_GETC, _format_ctx_t::buffer, _format_ctx_t::currentChars, EOF, ERR, NULL, _format_ctx_t::stream, and _format_ctx_t::totalChars.
Referenced by _scan().
|
static |
|
static |
Definition at line 52 of file scan.c.
References _format_ctx_t::buffer, _format_ctx_t::currentChars, NULL, _format_ctx_t::stream, _format_ctx_t::totalChars, and ungetc().
Referenced by _scan().