/ Remove the file type from a file name. */ Note: this routine is not really implemented for Unix. */ /
| 205 | /* Note: this routine is not really implemented for Unix. */ |
| 206 | /***********************************************************************/ |
| 207 | LPSTR PlugRemoveType(LPSTR pBuff, LPCSTR FileName) |
| 208 | { |
| 209 | #if defined(_WIN32) |
| 210 | char drive[_MAX_DRIVE]; |
| 211 | #else |
| 212 | char *drive = NULL; |
| 213 | #endif |
| 214 | char direc[_MAX_DIR]; |
| 215 | char fname[_MAX_FNAME]; |
| 216 | char ftype[_MAX_EXT]; |
| 217 | |
| 218 | _splitpath(FileName, drive, direc, fname, ftype); |
| 219 | |
| 220 | if (trace(2)) { |
| 221 | htrc("after _splitpath: FileName=%-.256s\n", FileName); |
| 222 | htrc("drive=%-.256s dir=%-.256s fname=%-.256s ext=%-.256s\n", |
| 223 | SVP(drive), direc, fname, ftype); |
| 224 | } // endif trace |
| 225 | |
| 226 | _makepath(pBuff, drive, direc, fname, ""); |
| 227 | |
| 228 | if (trace(2)) |
| 229 | htrc("buff='%-.256s'\n", pBuff); |
| 230 | |
| 231 | return pBuff; |
| 232 | } // end of PlugRemoveType |
| 233 | |
| 234 | BOOL PlugIsAbsolutePath(LPCSTR path) |
| 235 | { |
no test coverage detected