Mercurial > libpst
annotate src/testdebug.c @ 126:f01d6163acba
remove obsolete win32 directory since msvc builds are not directly supported
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 04 Feb 2009 20:59:06 -0800 |
parents | ab2a11e72250 |
children | fc11b1d1ad34 |
rev | line source |
---|---|
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
118
diff
changeset
|
1 #include "common.h" |
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
118
diff
changeset
|
2 |
48 | 3 #include "define.h" |
4 | |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
118
diff
changeset
|
5 #define BUF_SIZE 100000 |
16 | 6 |
118
0f1492b7fe8b
patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents:
48
diff
changeset
|
7 int main(int argc, const char** argv) { |
16 | 8 char *x = xmalloc(BUF_SIZE); // 10k |
9 memset(x, '.', BUF_SIZE-1); | |
10 x[BUF_SIZE-2]='P'; | |
11 x[BUF_SIZE-1]='\0'; | |
12 | |
13 DEBUG_INIT("libpst.log"); | |
14 DEBUG_REGISTER_CLOSE(); | |
15 | |
16 DEBUG_ENT("main"); | |
17 | |
18 DEBUG_FILE(("%s", x)); | |
19 DEBUG_FILE(("This is an error %d\n", 4)); | |
20 | |
21 DEBUG_RET(); | |
22 return 0; | |
23 } | |
24 |