This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: the length of the C string; no return value is reserved to indicate an error. The optional length specification parameter of the printf and sprintf functions can be used (when enabled) to create a string of a specific length by including the size between the "%" and the conversions specification. sprintf(buffer, "%10d", x); // convert x to a string of 10 characters NOTE: To enable the full functionality of the printf and sprintf functions, select your CCS project, follow the drop-down menus to Library Function Assumptions (Project->Properties->C/C++ Build), and select full Level of printf support required (--printf_support). i.e....
View Full Document
- Winter '09