Return Type | Function name | Arguments |
---|---|---|
hzEcode | GetCurrDir | (hzString&,) |
Declared in file: hzDirectory.h
Defined in file : hzDirectory.cpp
Function Logic:
Function body:
hzEcode GetCurrDir (hzString& Dir) { _hzfunc("GetCurrDir") ; char* cpDir ; Dir.Clear() ; cpDir = get_current_dir_name() ; if (!cpDir) { if (errno == EACCES) return hzwarn(E_NOTFOUND, "The current working directory has access issues") ; if (errno == ENOENT) return hzwarn(E_NOTFOUND, "The current working directory has been unlinked") ; return hzwarn(E_NOTFOUND, "Unspecified error") ; } Dir = cpDir ; free(cpDir) ; return E_OK ; }