CodeBase - Formatted text output

Return to the CodeBase listing

Category: Text

Version: 1.0

0
0

Information

Uploaded: 16th Sep 2011 07:33

Modified: 22nd Sep 2011 14:25

Author:  San

Summary

Text output functions that format input parameters according to format string.

Full Description

Text output functions that format input parameters according to format string.<br /> <br /> Every function takes format string as a parameter and zero or more parameters to format.<br /> <br /> Example:<br /> <br /> float f = 123.456f;<br /> int i = 254; // in hex is equal to 0xFE<br /> char s[] = "Hi";<br /> dbPrintf("%5.1f %d", f, i);<br /> dbPrintf("%07.2f %08x %s", f, i, s);<br /> <br /> will output to screen:<br /> 123.4 254<br /> 0123.45 000000FE Hi<br /> <br /> For more information on formatting, search desription of "printf" function.

Comments

No comments yet.