I have a line in C that contains a file path, for example, home / usr / wow / muchprogram.
I was wondering in C how I can get the line after the last "/". So, I could store it as a variable. This variable will be equal to "muchprogram" to be clear.
I also wonder how I could get everything to the final "/". Thanks in advance.
source
share