Bull DPX/20 Betriebsanweisung Seite 32

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 31
1-20 SOMobjects Base Toolkit: Programmers Reference Manual
somLPrintf Function
Purpose
Prints a formatted string in the manner of the C printf function, at the specified indentation
level.
Syntax
long somLPrintf (long level, string fmt, ...);
Description
The somLPrintf function prints a formatted string using 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). The output is prefixed at the indicated level, by preceding it with 2*level
spaces.
Parameters
level The level at which output is to be placed.
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 <somobj.h>
somLPrintf(5, ”The class name is %s.\n”, _somGetClassName(obj));
Related Information
Functions: somVprintf, somPrefixLevel, somPrintf, SOMOutCharRoutine
Data Structures: string (somcorba.h)
Seitenansicht 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare