Is there any standard (or widely used) simple POSIX path manipulation library for C (path join, filename stripping, etc.) ?
Actually, because I'm mostly working under Windows, I currently use 'shlwapi' path functions.
Is there any equivalent set of functions available for POSIX paths?
A path is represented by a number of path components separated by a path separator which is a / on POSIX systems and can be a / or \ on Windows. The root of the tree is represented by a / on POSIX and a drive letter followed by a / or \ on Windows (e.g. C:\ ). Paths can be absolute or relative.
Libaries consist of a set of related functions to perform a common task; for example, the standard C library, 'libc. a', is automatically linked into your programs by the “gcc” compiler and can be found at /usr/lib/libc. a. Standard system libraries are usually found in /lib and /usr/lib/ directories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With