Mercurial > libpst
comparison testdebug.c @ 0:6b1b602514db libpst_0_5
Initial revision
author | carl |
---|---|
date | Fri, 09 Jul 2004 07:26:16 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6b1b602514db |
---|---|
1 #include <stdlib.h> | |
2 #include <string.h> | |
3 #include "define.h" | |
4 | |
5 #define BUF_SIZE 100000 | |
6 int main() { | |
7 char *x = xmalloc(BUF_SIZE); // 10k | |
8 memset(x, '.', BUF_SIZE-1); | |
9 x[BUF_SIZE-2]='P'; | |
10 x[BUF_SIZE-1]='\0'; | |
11 | |
12 DEBUG_INIT("libpst.log"); | |
13 DEBUG_REGISTER_CLOSE(); | |
14 | |
15 DEBUG_ENT("main"); | |
16 | |
17 DEBUG_FILE(("%s", x)); | |
18 DEBUG_FILE(("This is an error %d\n", 4)); | |
19 | |
20 DEBUG_RET(); | |
21 return 0; | |
22 } | |
23 |