MentOS  0.8.0
The Mentoring Operating System
Functions
vscanf.c File Reference

Reading formatting routines. More...

Functions

static int vsscanf (const char *buf, const char *s, va_list ap)
 Read formatted data from string. More...
 
int sscanf (const char *buf, const char *fmt,...)
 Read formatted data from string. More...
 

Detailed Description

Reading formatting routines.

Function Documentation

◆ sscanf()

int sscanf ( const char *  str,
const char *  fmt,
  ... 
)

Read formatted data from string.

Parameters
strString processed as source to retrieve the data.
fmtFormat string, following the same specifications as printf.
...The list of arguments where the values are stored.
Returns
On success, the function returns the number of items of the argument list successfully filled. EOF otherwise.

◆ vsscanf()

static int vsscanf ( const char *  buf,
const char *  s,
va_list  ap 
)
static

Read formatted data from string.

Parameters
bufString processed as source to retrieve the data.
sFormat string, following the same specifications as printf.
apThe list of arguments where the values are stored.
Returns
On success, the function returns the number of items of the argument list successfully filled. EOF otherwise.