Is there a linux equivalent of the win32 API _splitpath in linux?
Details added:
void _splitpath ( const char *path, // Path Input char *drive, // Drive : Output char *dir, // Directory : Output char *fname, // Filename : Output char *ext // Extension : Output );
It takes full path as input, and give drive, dir, fname and ext as output.