- Timestamp:
- May 8, 2007, 10:07:38 PM (16 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility.cc
r294 r297 126 126 } 127 127 128 129 void touch(std::string str) 130 { 131 if (!node_exist(str)) { 132 std::ofstream os(str.c_str()); 133 os.close(); 134 } 135 } 136 128 137 time_t str2time(const std::string& str) 129 138 { -
trunk/lib/utility.h
r294 r297 127 127 /// 128 128 time_t str2time(const std::string&); 129 130 /// 131 /// If file does not exist create empty file. 132 /// 133 void touch(std::string); 129 134 130 135 ///
Note: See TracChangeset
for help on using the changeset viewer.