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.

selected the correct library in the Printf Integer Support property of the project ifyou use this length modifier.If a length modifier appears with any conversion specifier other than as specifiedabove, the behavior is undefined. Note that the C99 length modifiers ‘j’, ‘z’, ‘t’, and‘L’ are not supported.Conversion specifiers•‘d’. Matches an optionally signed decimal integer, whose <strong>for</strong>mat is the same asexpected <strong>for</strong> the subject sequence of the strtol function with the value 10 <strong>for</strong> thebase argument. The corresponding argument must be a pointer to signed integer.•‘i’. Matches an optionally signed integer, whose <strong>for</strong>mat is the same as expected <strong>for</strong>the subject sequence of the strtol function with the value zero <strong>for</strong> the baseargument. The corresponding argument must be a pointer to signed integer.•‘o’. Matches an optionally signed octal integer, whose <strong>for</strong>mat is the same asexpected <strong>for</strong> the subject sequence of the strtol function with the value 18 <strong>for</strong> thebase argument. The corresponding argument must be a pointer to signed integer.•‘u’. Matches an optionally signed decimal integer, whose <strong>for</strong>mat is the same asexpected <strong>for</strong> the subject sequence of the strtoul function with the value 10 <strong>for</strong> thebase argument. The corresponding argument must be a pointer to unsignedinteger.•‘x’. Matches an optionally signed hexadecimal integer, whose <strong>for</strong>mat is the sameas expected <strong>for</strong> the subject sequence of the strtoul function with the value 16 <strong>for</strong>the base argument. The corresponding argument must be a pointer to unsignedinteger.•‘e’, ‘f’, ‘g’. Matches an optionally signed floating-point number whose <strong>for</strong>mat isthe same as expected <strong>for</strong> the subject sequence of the strtod function. Thecorresponding argument shall be a pointer to floating. Some <strong>CrossWorks</strong> libraryvariants do not support the ‘e’, ‘f’ and ‘F’ conversion specifiers in order to reducecode and data space requirements; please ensure that you have selected the correctlibrary in the Scanf Floating Point Support property of the project if you use theseconversion specifiers.•‘c’. Matches a sequence of characters of exactly the number specified by the fieldwidth (one if no field width is present in the directive). The correspondingargument must be a pointer to the initial element of a character array large enoughto accept thesequence. No null character is added.•‘s’. Matches a sequence of non-white-space characters The correspondingargument must be a pointer to the initial element of a character array large enoughto accept the sequence and a terminating null character, which will be addedautomatically.Chapter 28 - Input/output functions287

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

Saved successfully!

Ooh no, something went wrong!