SilverScreen Solid Modeler



Previous topic Next topic  


Previous topic Next topic JavaScript is required for the print function  



int printf( char *fmt, ... )


char *fmt;        /* format string */





#include "stdio.h"


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




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.




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.