<< Previous | Next >> | |
|
int fat_GetPartition ( fat_part **part, char **file, char * fullpath);
Description
- Split a full pathname (e.g., "a:/filename.txt") into a paritition and filename.
- Examples (with
FAT_USE_FORWARDSLASH
defined):a:/filename.txt > partition A, /filename.txt/b/filename.txt > partition B, /filename.txtC:filename.txt > partition C, /filename.txt
- Examples (without
FAT_USE_FORWARDSLASH
defined):a:\filename.txt > partition A, \filename.txt\b\filename.txt > partition B, \filename.txtC:filename.txt > partition C, \filename.txtParameters
- part
- Memory location to store a pointer to the fat partition (drive letter).
- file
- Memory location to store a pointer into fullpath (parameter 3) where the filename begins.
- fullpath
- Pathname to parse.
Return Value
0
: Success
-EINVAL
: unable to parse <fullpath>Library
- FAT.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |