Are there any C APIs to extract the base file name from its full path in Linux?

Viewed 18405

Given the full path, the API should give me the base file name. E.g., "/foo/bar.txt" --> "bar.txt".

4 Answers
Related