Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / beh / beh / beh_toolbug.c
1
2 /* ###--------------------------------------------------------------### */
3 /* */
4 /* file : beh_toolbug.c */
5 /* date : Sep 3 1993 */
6 /* version : v106 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
9 /* */
10 /* ###--------------------------------------------------------------### */
11
12 #include <stdio.h>
13 #include MUT_H
14 #include AVT_H
15
16 /* ###--------------------------------------------------------------### */
17 /* function : beh_toolbug */
18 /* description : print an error message on the standard error output */
19 /* called func. : none */
20 /* ###--------------------------------------------------------------### */
21
22 void beh_toolbug (code, str1, str2, nbr1)
23
24 int code;
25 char *str1;
26 char *str2;
27 int nbr1;
28
29 {
30 char buf[16];
31
32 sprintf(buf,"%d",code+100);
33 switch (code)
34 {
35 case 1:
36 case 2:
37 case 3:
38 case 4:
39 case 5:
40 case 10:
41 case 16 :
42 case 100 :
43 case 103 :
44 avt_errmsg(BEH_ERRMSG,buf,AVT_FATAL,str1);
45 break;
46 case 19:
47 case 20:
48 case 101 :
49 avt_errmsg(BEH_ERRMSG,buf,AVT_FATAL,str1,str2);
50 break;
51 case 102 :
52 case 15 :
53 avt_errmsg(BEH_ERRMSG,buf,AVT_FATAL,str1,nbr1);
54 break;
55 case 199:
56 default:
57 avt_errmsg(BEH_ERRMSG,"199",AVT_FATAL,str1);
58 }
59 }