-
Recent Posts
Recent Comments
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