PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
vsscanf.c File Reference
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include "common/scan.h"
Include dependency graph for vsscanf.c:

Go to the source code of this file.

Macros

#define _SCAN_GET(ctx)
 
#define _SCAN_UNGET(ctx, c)
 

Functions

int vsscanf (const char *_RESTRICT s, const char *_RESTRICT format, va_list arg)
 

Macro Definition Documentation

◆ _SCAN_GET

#define _SCAN_GET (   ctx)
Value:
({ \
const char** str = (const char**)(ctx)->data; \
char c = **str; \
if (c != '\0') \
{ \
(*str)++; \
} \
c == '\0' ? EOF : (unsigned char)c; \
})
#define EOF
Definition stdio.h:25

Definition at line 5 of file vsscanf.c.

◆ _SCAN_UNGET

#define _SCAN_UNGET (   ctx,
 
)
Value:
({ \
const char** str = (const char**)(ctx)->data; \
if ((c) != EOF) \
{ \
(*str)--; \
} \
})

Definition at line 16 of file vsscanf.c.

Function Documentation

◆ vsscanf()

int vsscanf ( const char *_RESTRICT  s,
const char *_RESTRICT  format,
va_list  arg 
)

Definition at line 27 of file vsscanf.c.

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