Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

testdebug.c

Go to the documentation of this file.
00001 #include "define.h"
00002 
00003 #define BUF_SIZE 100000
00004 
00005 int main(int argc, const char** argv) {
00006   char *x = xmalloc(BUF_SIZE); // 10k
00007   memset(x, '.', BUF_SIZE-1);
00008   x[BUF_SIZE-2]='P';
00009   x[BUF_SIZE-1]='\0';
00010 
00011   DEBUG_INIT("libpst.log");
00012   DEBUG_REGISTER_CLOSE();
00013 
00014   DEBUG_ENT("main");
00015 
00016   DEBUG_FILE(("%s", x));
00017   DEBUG_FILE(("This is an error %d\n", 4));
00018 
00019   DEBUG_RET();
00020   return 0;
00021 }
00022 

Generated on Thu Feb 26 13:40:07 2009 for 'LibPst' by  doxygen 1.3.9.1