I am looking for a set of functions written in C for manipulating file paths. Functions that could do the following would be nice.
Can tidy dir/.. occurances from paths
Convert absolute to relative
Convert relative to absolute
Tell if a path was absolute of relative
Return the file name portion
Return the path portion
And be cross platform, ie work on both linux and windows. I know it is asking a lot, but other languages such as Python have it built in, and it is available as a cpan module for perl.
Thanks in advance.