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

Last change on this file since 291 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
RevLine 
[2]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.