1-26 SOMobjects Base Toolkit: Programmer’s Reference Manual
somPrintf Function
Purpose
Prints a formatted string in the manner of the C printf function.
Syntax
long somPrintf (string fmt, ...);
Description
The somPrintf function prints a formatted string using function SOMOutCharRoutine, in
the same manner as the C printf function. The implementation of SOMOutCharRoutine
determines the destination of the output, while the C printf function is always directed to
stdout. (The default output destination for SOMOutCharRoutine is stdout also, but this can
be modified by the user.)
Parameters
fmt The format string to be output.
varargs The values to be substituted into the format string.
Return Value
Returns the number of characters written.
C Example
#include <somcls.h>
somPrintf(”The class name is %s.\n”, _somGetClassName(obj));
Related Information
Functions: somVprintf, somPrefixLevel, somLPrintf, SOMOutCharRoutine
Komentarze do niniejszej Instrukcji