Added SILC Thread Queue API
[silc.git] / util / robodoc / Docs / example.c
1 /****f* Robodoc/RB_Panic [2.0d]
2  * NAME
3  *   RB_Panic -- Shout panic, free resources, and shut down.
4  * SYNOPSIS
5  *   RB_Panic (cause, add_info)
6  *   RB_Panic (char *, char *)
7  * FUNCTION
8  *   Prints an error message.
9  *   Frees all resources used by robodoc.
10  *   Terminates program.
11  * INPUTS
12  *   cause    - pointer to a string which describes the
13  *              cause of the error.
14  *   add_info - pointer to a string with additional information.
15  * SEE ALSO
16  *   RB_Close_The_Shop ()
17  * SOURCE
18  */
19
20   void RB_Panic (char *cause, char *add_info)
21   {
22     printf ("Robodoc: Error, %s\n",cause) ;
23     printf ("         %s\n", add_info) ;
24     printf ("Robodoc: Panic Fatal error, closing down...\n") ;
25     RB_Close_The_Shop () ; /* Free All Resources */
26     exit(100) ;
27   }
28
29 /*******/