11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DescriptionPortabilitysscanf reads input from the string s under control of the string pointed to by <strong>for</strong>matthat specifies the admissible input sequences and how they are to be converted <strong>for</strong>assignment, using subsequent arguments as pointers to the objects to receive theconverted input.If there are insufficient arguments <strong>for</strong> the <strong>for</strong>mat, the behavior is undefined. If the<strong>for</strong>mat is exhausted while arguments remain, the excess arguments are evaluated butare otherwise ignored.sscanf returns the value of the macro EOF if an input failure occurs be<strong>for</strong>e anyconversion. Otherwise, sscanf returns the number of input items assigned, which canbe fewer than provided <strong>for</strong>, or even zero, in the event of an early matching failure.sscanf con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).See Also Formatted input control strings (page 285)vprintfSynopsisDescriptionNotesPortability#include int vprintf(const char *<strong>for</strong>mat, va_list arg);vprintf writes to the standard output stream using putchar, under control of the stringpointed to by <strong>for</strong>mat that specifies how subsequent arguments are converted <strong>for</strong>output. Be<strong>for</strong>e calling vprintf, arg must be initialized by the va_start macro (andpossibly subsequent va_arg calls). vprintf does not invoke the va_end macro.vprintf returns number of characters transmitted, or a negative value if an output orencoding error occurred.vprintf is equivalent to printf with the variable argument list replaced by arg.vprintf con<strong>for</strong>ms to ISO/IEC 9899:1999 (C99).See Also Formatted output control strings (page 281)vscanfSynopsisDescription#include int vscanf(const char *<strong>for</strong>mat, va_list arg);vscanf reads input from the standard input stream under control of the string pointedto by <strong>for</strong>mat that specifies the admissible input sequences and how they are to beconverted <strong>for</strong> assignment, using subsequent arguments as pointers to the objects toreceive the converted input. Be<strong>for</strong>e calling vscanf, arg must be initialized by theva_start macro (and possibly subsequent va_arg calls). vscanf does not invoke theva_end macro.If there are insufficient arguments <strong>for</strong> the <strong>for</strong>mat, the behavior is undefined.292 Chapter 28 Standard C Library Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!