HOPS
HOPS class reference
msg.h
Go to the documentation of this file.
1 /*************************************************************/
2 /* */
3 /* Trivial routine to send messages to stderr, under control */
4 /* of "importance level" argument. This allows for user */
5 /* selectable verbosity levels for programs. */
6 /* */
7 /* Initial version CJL 10 July 1991 */
8 /* Modified by CJL, 23 Oct 1991 to allow printf()-style */
9 /* format string and argument list, using varargs */
10 /* mod. 2005.4.14 rjc use stdarg.h instead of varargs.h */
11 /* */
12 /*************************************************************/
13 #ifndef MSG_H_
14 #define MSG_H_
15 
16 #include <string.h>
17 #include <stdio.h>
18 #include <stdarg.h>
19 
20 extern char progname[256];
21 extern int msglev;
22 
23 extern void set_progname(const char* local_progname);
24 extern const char* get_progname();
25 extern void set_msglev(int lev);
26 extern void msg (const char *string, int level, ...);
27 
28 #endif
void msg(const char *string, int level,...)
Definition: msg.c:25
void set_progname(const char *local_progname)
Definition: msg.c:6
char progname[256]
Definition: msg.c:3
int msglev
Definition: CorAsc2.c:73
void set_msglev(int lev)
Definition: msg.c:19
const char * get_progname()
Definition: msg.c:14