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

Go to the source code of this file.

Macros

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

Functions

int vfscanf (FILE *_RESTRICT stream, const char *_RESTRICT format, va_list arg)
 

Macro Definition Documentation

◆ _SCAN_GET

#define _SCAN_GET (   ctx)
Value:
({ \
FILE* file = (FILE*)(ctx)->data; \
fgetc(file); \
})
Definition file.h:34

Definition at line 7 of file vfscanf.c.

◆ _SCAN_UNGET

#define _SCAN_UNGET (   ctx,
 
)
Value:
({ \
FILE* file = (FILE*)(ctx)->data; \
if ((c) != EOF) \
{ \
ungetc(c, file); \
} \
})
#define EOF
Definition stdio.h:25

Definition at line 13 of file vfscanf.c.

Function Documentation

◆ vfscanf()

int vfscanf ( FILE *_RESTRICT  stream,
const char *_RESTRICT  format,
va_list  arg 
)

Definition at line 24 of file vfscanf.c.

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