Download TASKING VX-toolset for ARM User Guide

Transcript
TASKING VX-toolset for ARM User Guide
Character Scanned as
n
int *, the number of characters written so far is written into the argument. No scanning is done.
p
pointer; hexadecimal value which must be entered without 0x- prefix.
[...]
Matches a string of input characters from the set between the brackets. A NULL character is
added to terminate the string. Specifying [ ]...] includes the ']' character in the set of scanning
characters.
[^...]
Matches a string of input characters not in the set between the brackets. A NULL character
is added to terminate the string. Specifying [^]...] includes the ']' character in the set.
%
Literal '%', no assignment is done.
scanf conversion characters
stdio.h
wchar.h
Description
fscanf(stream,
format, ...)
fwscanf(stream,
format, ...)
Performs a formatted read from the given stream.
Returns the number of items converted
successfully. (FSS implementation)
scanf(format,...)
wscanf(format, ...) Performs a formatted read from stdin. Returns
the number of items converted successfully. (FSS
implementation)
sscanf(*s, format,
...)
swscanf(*s, format, Performs a formatted read from the string s.
Returns the number of items converted
...)
successfully.
vfscanf(stream,
format, arg)
vfwscanf(stream,
format, arg)
Same as fscanf/fwscanf, but extra arguments
are given as variable argument list arg. (See
Section 14.2.19, stdarg.h)
vscanf(format, arg) vwscanf(format, arg) Same as sscanf/swscanf, but extra arguments
are given as variable argument list arg. (See
Section 14.2.19, stdarg.h)
vsscanf(*s, format, vswscanf(*s, format, Same as scanf/wscanf, but extra arguments
arg)
arg)
are given as variable argument list arg. (See
Section 14.2.19, stdarg.h)
fprintf(stream,
format, ...)
fwprintf(stream,
format, ...)
Performs a formatted write to the given stream.
Returns EOF/WEOF on error. (FSS
implementation)
printf(format, ...) wprintf(format, ...) Performs a formatted write to the stream stdout.
Returns EOF/WEOF on error. (FSS
implementation)
sprintf(*s, format, ...)
Performs a formatted write to string s. Returns
EOF/WEOF on error.
snprintf(*s, n,
format, ...)
Same as sprintf, but n specifies the maximum
number of characters (including the terminating
null character) to be written.
788
swprintf(*s, n,
format, ...)