2 .TH quis 3 "22 May 1999" "Straylight/Edgeware" "mLib utilities library"
4 quis \- remember the program's name for use in messages
11 .B "#include <mLib/quis.h>"
13 .BI "void ego(const char *" p );
14 .B "const char *quis(void);"
15 .B "const char *QUIS;"
16 .BI "int pquis(FILE *" fp ", const char *" p );
21 function should be called early in your program's initialization
22 sequence, with the value of
24 as its argument. It will strip away leading path components, and a
25 leading `\-' character (in case the program was called as a login
26 shell), and keep the resulting short name for later.
30 function returns the stored program name. There is also a macro
32 which expands to the name of a global variable whose value is the string
36 Don't ask why it's done this way. There are raisins, but they're mostly
41 is passed a file pointer
45 it writes the string to the file, replacing every lone occurrence of the
48 by the program name. Pairs
50 are written as single dollar signs. The return value is zero if
51 everything went OK, or the constant
53 if there was an error.
55 The program name is used in the messages produced by the
64 Mark Wooding, <mdw@distorted.org.uk>