3 #ifndef INCLUDED_Z_UTIL_H
4 #define INCLUDED_Z_UTIL_H
10 * Extremely basic stuff, like global temp and constant variables.
11 * Also, some very useful low level functions, such as "streq()".
12 * All variables and functions in this file are "addressable".
16 /**** Available variables ****/
18 /* A cptr to the name of the program */
23 extern void (*plog_aux)(cptr);
24 extern void (*quit_aux)(cptr);
25 extern void (*core_aux)(cptr);
28 /**** Available Functions ****/
30 /* Test equality, prefix, suffix */
31 extern bool streq(cptr s, cptr t);
32 extern bool prefix(cptr s, cptr t);
33 extern bool suffix(cptr s, cptr t);
36 /* Print an error message */
37 extern void plog(cptr str);
39 /* Exit, with optional message */
40 extern void quit(cptr str);
42 /* Dump core, with optional message */
43 extern void core(cptr str);