source: liacs/coco/assignment4/debug.c@ 109

Last change on this file since 109 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: 262 bytes
Line 
1#include "debug.h"
2
3extern int msglevel; /* the higher, the more messages... */
4
5void pmesg(int level, const 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.