Declaration:
void printf(char format[], ... );
Description
The printf function displays the values of transferred parameters in the Console in accordance with the format line.
Upon every printf access, data is displayed in the new window line, that is, "\n" is automatically added to the displayed string.
If the Console window is already opened, it will be automatically opened.
The wprintf function provides more capabilities for the formatted output, but it requires certain preparatory operations.
Note. Your arguments passed to this function shall match the format line. In case of mismatch, the ChipProg program may crash, because it cannot check the correspondence between the format string and parameters passed.
For more info, see:
Format String
Format Specifiers
Flag Characters
Width Specifiers
Precision Specifiers
Input-size Modifiers
Type Characters
Format Specifier Conventions
Returned Value
Нет.
Example
printf("Counter = %d\n"
"Value = %08lX",
Counter, Value);
|