SilverScreen Solid Modeler

printf

printf

Previous topic Next topic  

printf

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

int printf( char *fmt, ... )

 

char *fmt;        /* format string */

 

 

 




Synopsis

#include "stdio.h"

 

The printf function writes data to stdout under control of the format string fmt .

 

 

Parameters

fmt is a null-terminated string that contains the desired format specifiers.

 

 

Return Value

printf returns the number of characters written, or a negative number if an error occurred.

 

 

Comments

Functions that write to stdout , such as printf and vprintf , are not recommended for use in SilverC, since the output of such functions may not be handled correctly by the graphics system used by SilverScreen.

 

The types of arguments must match those expected by the format specifiers in fmt , and the number of arguments must be greater than or equal to the number of specifiers in fmt ; otherwise, the result of printf is undefined.

 

 

See Also

fprintf for a description of format specifiers acceptable to printf . sprintf , ss_command and vprintf are related functions.