MCPcopy Create free account
hub / github.com/LAStools/LAStools / getHomeDirectory

Function getHomeDirectory

LASzip/src/mydefs.cpp:828–834  ·  view source on GitHub ↗

Function to get the home directory of the current user

Source from the content-addressed store, hash-verified

826
827/// Function to get the home directory of the current user
828const char* getHomeDirectory() {
829#ifdef _WIN32
830 return getenv("USERPROFILE");
831#else
832 return getenv("HOME");
833#endif
834}
835
836/// Does the file exist
837BOOL file_exists(const std::string& path) {

Calls

no outgoing calls

Tested by

no test coverage detected