I have tried every possible combination of string operators ( I think) to split a char array that is to be used as a filename variable. What I need to do is split the user entered filename around the period using dino dos's 8.3 file format, so the period is the deliminator (I guess). However, if the first half of the file name is less than 8 characters, the strxfrm(desiredhalf, enteredhalf, 8) won't work. The strcpy(1,2) is of no practical use. gets, puts won't work right. I am going crazy over this seemingly simple operation. What am I missing? Any help would be greatly appreciated. This is being done on a 16 bit compiler for pure dos w/o the string operator being used for variable names.
char filename; // holder for first 8 chars
char fileName; // user filename in 8.3 format
char fileext; // holder for last 3 chars... should be  but.....