Query: setlabel
OS: opensolaris
Section: 3c
Links: opensolaris man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
setlabel(3C) Standard C Library Functions setlabel(3C)NAMEsetlabel - define the label for pfmt() and lfmt()SYNOPSIS#include <pfmt..h> int setlabel(const char *label);DESCRIPTIONThe setlabel() function defines the label for messages produced in standard format by subsequent calls to lfmt(3C) and pfmt(3C). The label argument is a character string no more than 25 characters in length. No label is defined before setlabel() is called. The label should be set once at the beginning of a utility and remain constant. A null pointer or an empty string passed as argument will reset the definition of the label.RETURN VALUEUpon successful completion, setlabel() returns 0; otherwise, it returns a non-zero value.EXAMPLESThe following code (without previous call to setlabel()): pfmt(stderr, MM_ERROR, "test:2:Cannot open file "); setlabel("UX:test"); pfmt(stderr, MM_ERROR, "test:2:Cannot open file "); will produce the following output: ERROR: Cannot open file UX:test: ERROR: Cannot open fileATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOgetopt(3C), lfmt(3C), pfmt(3C), attributes(5) SunOS 5.11 29 Dec 1996 setlabel(3C)
Related Man Pages |
---|
addsev(3c) - opensolaris |
pfmt(3c) - opensolaris |
vlfmt(3c) - opensolaris |
pfmt(3c) - sunos |
setcat(3c) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Searching for a specific string in an argumnet |
Label printing help |
how to open the linux text file in windows |