cwalk

Cross-platform C/C++ library for portable file path manipulation

brewmacoslinux
Try with needOr install directly
Source

About

Cross-platform path library for C/C++

Examples

build C project that uses cwalk for path operations$ gcc -I/usr/local/include myapp.c -L/usr/local/lib -lcwalk -o myapp
normalize file paths across Windows and Unix$ #include <cwalk.h> // Use cwalk_normalize() in C code
combine directory and filename into full path safely$ #include <cwalk.h> // Use cwalk_join() to concatenate paths
extract just the filename from a full file path$ #include <cwalk.h> // Use cwalk_basename() to get filename only
get parent directory path from a file or folder path$ #include <cwalk.h> // Use cwalk_dirname() for directory portion