rotoglup
rotoglup

Reputation: 5238

Standard (or free) POSIX path manipulation C library

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?

Upvotes: 8

Views: 7203

Answers (1)

John Zwinck
John Zwinck

Reputation: 249394

  • path join - snprintf()
  • filename stripping - dirname()
  • etc. - basename(), realpath(), readlink(), glob(), fnmatch()...

Upvotes: 11

Related Questions