- Timestamp:
- Jun 30, 2006, 1:19:30 PM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility.cc
r112 r115 30 30 #include <sstream> 31 31 #include <string> 32 #include <sys/param.h> 32 33 #include <sys/stat.h> 34 #include <unistd.h> 33 35 34 36 namespace theplu{ … … 146 148 147 149 150 std::string pwd(void) 151 { 152 char buffer[MAXPATHLEN]; 153 getcwd(buffer, MAXPATHLEN); 154 return std::string(buffer); 155 } 156 157 158 148 159 }} // end of namespace svnstat and namespace theplu -
trunk/lib/utility.h
r112 r115 59 59 /// 60 60 std::map<std::string, std::string> info(const std::string&); 61 62 /// 63 /// @return the current working directory. 64 /// 65 std::string pwd(void); 61 66 62 67 ///
Note: See TracChangeset
for help on using the changeset viewer.