How to remove word in C string
I currently have a char array that is storing a filename.
eg. folder1/subfolder/subsubfolder/file1.txt
I want to be able to remove the first folder name in this char array. so
it becomes
subfolder/subsubfolder/file1.txt
I know that basename() will make the output file1.txt but I need the
folder structure, just not the first one.
What is the best way to do it? use / as a delineating character?
No comments:
Post a Comment