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