Standard (or free) POSIX path manipulation C library

本小妞迷上赌 提交于 2019-12-03 13:06:04

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/8900980/standard-or-free-posix-path-manipulation-c-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!