Declaration:
int fnsplit(char path[], char drive[], char dir[], char name[], char ext[]);
Description
Selects components of the path to the file. Receives the file name with the path, for example, C:\PROGRAM\TEST.C, as the parameter path, and copies the components of the path to appropriate lines. The useful constants for describing the array sizes (MAXPATH, MAXDRIVE, MAXDIR, MAXFILE, MAXEXT) are defined in the system.h file.
If any of the path components is missing, then 0 will be the first character in the corresponding line.
Returned value
Returns the flag word describing the result. Constants corresponding to the flag word bits (WILDCARDS, EXTENSION, ...) are defined in system.h.
|