#ifdef HAVE_CONFIG_H #include RCSID("$Id$"); #endif #include char* getcwd(char *path, int size) { char xxx[MAXPATHLEN]; char *ret; ret = getwd(xxx); if(ret) strncpy(path, xxx, size); return ret; }