Ok, I could use some more help on my dos 8.3 filename format problem. Thus far I've gotten the first half of the filename to work thanks to those that helped on the last post.
char filename; // will work on this later
int index = 0;
int count1 = 0;
for(count1 = 0; count1 < fileName[count1]; count1++)
strxfrm(filename, fileName, count1)
if(fileName == '.')
index = strstr(fileName, ".") - fileName;
if(index > 8)
printf(filename entry wrong);
break; // got my filename first half seperated at the .
This portion works now. However, what I can't figure out is how to advance the fileName past the period to catch the second part of the filename. Nothing is working. I also need the second half for error control if the user types in something like my.program. Since it is less than the array it will still be processed though the 8.3 format has been violated. Any ideas?