Download TASKING VX-toolset for ARM User Guide
Transcript
Libraries printf conversion characters All arguments to the scanf related functions should be pointers to variables (in default memory) of the type which is specified in the format string. The format string can contain : • Blanks or tabs, which are skipped. • Normal characters (not '%'), which should be matched exactly in the input stream. • Conversion specifications, starting with a '%' character. Conversion specifications should be built as follows (in order) : • A '*', meaning that no assignment is done for this field. • A number specifying the maximum field width. • The conversion characters d, i, n, o, u and x may be preceded by 'h' if the argument is a pointer to short rather than int, or by 'hh' if the argument is a pointer to char, or by 'l' (letter ell) if the argument is a pointer to long or by 'll' for a pointer to long long, 'j' for a pointer to intmax_t or uintmax_t, 'z' for a pointer to size_t or 't' for a pointer to ptrdiff_t. The conversion characters e, f, and g may be preceded by 'l' if the argument is a pointer to double rather than float, and by 'L' for a pointer to a long double. • A conversion specifier. '*', maximum field width and length modifier are optional, the conversion character is not. The conversion character must be one of the following, if a character following '%' is not in the list, the behavior is undefined. Length specifier and length modifier are optional, the conversion character is not. The conversion character must be one of the following, if a character following '%' is not in the list, the behavior is undefined. Character Scanned as d int, signed decimal. i int, the integer may be given octal (i.e. a leading 0 is entered) or hexadecimal (leading "0x" or "0X"), or just decimal. o int, unsigned octal. u int, unsigned decimal. x int, unsigned hexadecimal in lowercase or uppercase. c single character (converted to unsigned char). s char *, a string of non white space characters. The argument should point to an array of characters, large enough to hold the string and a terminating NULL character. f, F float e, E float g, G float a, A float 809
Related documents
TASKING VX-toolset for ARM User Guide
v1.1 ARM Tools Reference
Using the ARM Embedded Tools
STM32 USB-FS-Device development kit
TR0131 ARM Embedded Tools Reference
A8810-0 - Obvius
TR114™ PCI Digital Hardware Guide
ISC End Station User`s Manual - DCC
Operational Safety Procedure Form
ISC End Station User`s Manual - DCC
User`s manual control unit CCMon10
EFM32LG-STK3600 Leopard Gecko Starter Kit User`s