1 2 3 4 5 6 7 8 9 10
#include "lib9.h" #undef getwd #undef getwd #include <unistd.h> char* mygetwd(char *path, int len) { return getcwd(path, len); }