11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The behaviour of va_start and va_arg is undefined if the parameter parmN is declaredwith the register storage class, with a function or array type, or with a type that is notcompatible with the type that results after application of the default argumentpromotions.va_start must be invoked be<strong>for</strong>e any access to the unnamed arguments.va_start and va_copy must not be be invoked to reinitialize ap without an interveninginvocation of the va_end macro <strong>for</strong> the same ap.Portabilityva_start con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).See also va_arg (page 278), va_copy (page 279), va_end (page 279) - Input/output functionsThe header file defines a number of functions to <strong>for</strong>mat and output values.The <strong>for</strong>mat-control directives that <strong>for</strong> the <strong>for</strong>matted input and output function aredescribed in Formatted input control strings (page 285) and Formatted output controlstrings (page 281).Character and string I/O functionsgetchargetsputcharputsRead a character from standard inputRead a string from standard inputWrite a character to standard outputWrite a string to standard outputFormatted input functionsscanfsscanfvscanfvsscanfRead <strong>for</strong>matted text from standard inputRead <strong>for</strong>matted text from a stringRead <strong>for</strong>matted text from standard input using a va_listargumentRead <strong>for</strong>matted text from a string using a va_list argumentFormatted output functionsprintfsnprintfsprintfWrite <strong>for</strong>matted text to standard outputWrite <strong>for</strong>matted text to a string with truncationWrite <strong>for</strong>matted text to a string280 Chapter 28 Standard C Library Reference

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

Saved successfully!

Ooh no, something went wrong!