source: liacs/coco/assignment3/debug.c@ 41

Last change on this file since 41 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 256 bytes
Line 
1#include "debug.h"
2
3extern int msglevel; /* the higher, the more messages... */
4
5void pmesg(int level, char* format, ...) {
6 va_list args;
7
8 if (level <= msglevel) {
9 va_start(args, format);
10 vfprintf(stderr, format, args);
11 va_end(args);
12 }
13}
Note: See TracBrowser for help on using the repository browser.