-
Recent Posts
Recent Comments
- erotik on gcc build error: undefined _Unwind_Ptr
- john dresler on Install Stereo for 2007 Dodge Grand Caravan
- kitchen granite countertops on Populate and serialize text options (Java and C++)
- remodeling Reasons on Populate and serialize text options (Java and C++)
- Wes on Install Stereo for 2007 Dodge Grand Caravan
Archives
Categories
Meta
Monthly Archives: November 2012
Overloading open() and fopen()
One can overload fopen() and open() for debugging purpose, the example below traces each file opening operation: #include #include static FILE * (*next_fopen)(const char *path, const char *mode); FILE * fopen(const char *path, const char *mode) { char *msg; if … Continue reading
Posted in programming
Leave a comment