- char msg[2048], folder[2048], name[32];
- char *basename;
- int length;
-
- /* split the outFileName into folder + name + type */
- strcpy(folder, outFileName);
- basename = strrchr(folder, U_FILE_SEP_CHAR);
- if(basename == NULL) {
- basename = folder;
- } else {
- ++basename;
- }
-
- /* copy the data name and remove it from the folder */
- strcpy(name, basename);
- *basename = 0;