#include <pfmt.h> int setlabel(const char *label);
label is a character string no more than 25 characters in length.
No label is defined before setlabel() is called. A NULL pointer or an empty string passed as argument will reset the definition of the label.
pfmt(stderr, MM_ERROR, "test:2:Cannot open file\n"); setlabel("UX:test"); pfmt(stderr, MM_ERROR, "test:2:Cannot open file\n");
will produce the following output:
ERROR: Cannot open file UX:test: ERROR: Cannot open file