Mercurial > libpst
annotate src/testdebug.c @ 129:fc11b1d1ad34
fix initial from header in mbox format.
start moving to PST_LE_GET* rather than LE*_CPU macros so we can eventually remove the pragma packing.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 05 Feb 2009 12:09:04 -0800 |
parents | ab2a11e72250 |
children | 6954d315aaa8 |
rev | line source |
---|---|
48 | 1 #include "define.h" |
2 | |
123
ab2a11e72250
more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents:
118
diff
changeset
|
3 #define BUF_SIZE 100000 |
16 | 4 |
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
|
5 int main(int argc, const char** argv) { |
16 | 6 char *x = xmalloc(BUF_SIZE); // 10k |
7 memset(x, '.', BUF_SIZE-1); | |
8 x[BUF_SIZE-2]='P'; | |
9 x[BUF_SIZE-1]='\0'; | |
10 | |
11 DEBUG_INIT("libpst.log"); | |
12 DEBUG_REGISTER_CLOSE(); | |
13 | |
14 DEBUG_ENT("main"); | |
15 | |
16 DEBUG_FILE(("%s", x)); | |
17 DEBUG_FILE(("This is an error %d\n", 4)); | |
18 | |
19 DEBUG_RET(); | |
20 return 0; | |
21 } | |
22 |