Extract Directory, Filename And Extension from filepath
$ clib install mofosyne/extractFilePathComponents.c
char *path = "./hello/test.exp";
char dir[200] = {0};
char name[200] = {0};
char ext[200] = {0};
extractFilePathComponents(path, dir, sizeof(dir), name, sizeof(name), ext, sizeof(ext));
GPL-3.0-or-later