1 #ifndef VSF_UTILITY_H
2 #define VSF_UTILITY_H
3 
4 struct mystr;
5 
6 /* die()
7  * PURPOSE
8  * Terminate execution of the process, due to an abnormal (but non-bug)
9  * situation.
10  * PARAMETERS
11  * p_text       - text string describing why the process is exiting
12  */
13 void die(const char* p_text);
14 
15 /* die2()
16  * PURPOSE
17  * Terminate execution of the process, due to an abnormal (but non-bug)
18  * situation.
19  * PARAMETERS
20  * p_text1      - text string describing why the process is exiting
21  * p_text2      - text to safely concatenate to p_text1
22  */
23 void die2(const char* p_text1, const char* p_text2);
24 
25 /* bug()
26  * PURPOSE
27  * Terminate execution of the process, due to a suspected bug, trying to emit
28  * the reason this happened down the network in FTP response format.
29  * PARAMETERS
30  * p_text       - text string describing what bug trap has triggered
31  *       */
32 void bug(const char* p_text);
33 
34 /* vsf_exit()
35  * PURPOSE
36  * Terminate execution of the process, writing out the specified text string
37  * in the process.
38  * PARAMETERS
39  * p_text       - text string describing why the process is exiting
40  */
41 void vsf_exit(const char* p_text);
42 
43 /* vsf_print()
44  * PURPOSE
45  * Writing out the specified text string in the process.
46  * PARAMETERS
47  * p_text       - text string describing why the process is exiting
48  */
49 void vsf_print(const char* p_text);
50 
51 #endif
52