MCPcopy Create free account
hub / github.com/davisking/dlib / get_current_dir

Function get_current_dir

dlib/misc_api/misc_api_kernel_2.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42// ----------------------------------------------------------------------------------------
43
44 std::string get_current_dir (
45 )
46 {
47 char buf[1024];
48 if (getcwd(buf,sizeof(buf)) == 0)
49 {
50 return std::string();
51 }
52 else
53 {
54 return std::string(buf);
55 }
56 }
57
58// ----------------------------------------------------------------------------------------
59

Callers 2

box_winMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected