00001 #ifndef hocstr_h 00002 #define hocstr_h 00003 #include <stdio.h> 00004 /* too many time char* buf overruns its storage */ 00005 00006 typedef struct HocStr { 00007 char* buf; 00008 int size; 00009 }HocStr; 00010 00011 extern HocStr* hoc_tmpbuf; /* highly volatile, copy immediately */ 00012 extern HocStr* hocstr_create(); 00013 extern char* fgets_unlimited(HocStr* s, FILE* f); 00014 00015 #endif 00016