たとえば../bin/test.c、文字列を持っているので、その部分文字列を取得するにはどうすればよいtestですか?
strtokapiを試してみましたが、よくないようです。
char a[] = "../bin/a.cc";
char *temp;
if(strstr(a,"/") != NULL){
temp = strtok(a, "/");
while(temp !=NULL){
temp = strtok(NULL, "/");
}
}