The optional flags, width, and precision fields control additional format aspects such as leading spaces or zeroes, justification, and displayed precision. The required type field specifies the kind of conversion to be applied to an argument. % typeĮach field of the conversion specification is a character or a number that signifies a particular format option or conversion specifier. For a listing of these functions, see Stream I/O.Ī conversion specification consists of optional and required fields in this form: This article describes the syntax used to encode conversion specifications in the format string. The format string contains zero or more directives, which are either literal characters for output or encoded conversion specifications that describe how to format an argument in the output. The various printf and wprintf functions take a format string and optional arguments and produce a formatted sequence of characters for output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |