SSCANF - formatted input conversion.
(ANSI Standard)
Usage:
#include <stdio.h>
ret = sscanf( s, format [, p1, p2, ...] );
Where:
- const char *s;
- points to the string which is to be read.
- const char *format;
- is a format string similar to that for "scanf".
- p1, p2, p3, ...
- are pointers to various data types.
- int ret;
- is the number of matching data items that were read in.
This may be zero if the first data item found does not
match the type that was expected. If an error or end of
string occurs before the first item could be read in, EOF
is returned.
Description:
"sscanf" reads input from the string "s"
and assigns it to the areas of memory pointed to by the pointers
"p1", "p2", and so on. The "format"
string indicates how to interpret the characters being read in.
For a full description of the interpretation symbols used by
"sscanf", see the documentation for "scanf".
See Also:
expl c lib scanf
expl c lib fscanf
expl c lib printf
Copyright © 1996, Thinkage Ltd.