Changeset 1426
- Timestamp:
- 2000-08-20T20:27:47+12:00 (24 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/fileutil.cpp
r1419 r1426 232 232 233 233 #endif 234 235 // I'm sure there's a better way to do this - for now I don't have 236 // time to find it though. -- This will probably break compiling 237 // under windows ports of gcc 238 void file_copy (const text_t &fromfile, const text_t &tofile) { 239 240 #ifdef __WIN32__ 241 char *fromfilec = fromfile.getcstr(); 242 char *tofilec = tofile.getcstr(); 243 CopyFile (fromfilec, tofilec, FALSE); 244 delete fromfilec; 245 delete tofilec; 246 247 #else 248 text_t cp_cmd = "cp " + fromfile + " " + tofile; 249 char *cp_cmdc = cp_cmd.getcstr(); 250 system (cp_cmdc); 251 delete cp_cmd_c 252 253 #endif 254 } -
trunk/gsdl/lib/fileutil.h
r1419 r1426 49 49 bool read_dir (const text_t &dirname, text_tarray &filelist); 50 50 51 void file_copy (const text_t &fromfile, const text_t &tofile); 52 51 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.