Is there an equivalent to WinAPI's MAX_PATH under linux/unix?

前端 未结 7 1739
心在旅途
心在旅途 2020-12-01 00:40

If I want to allocate a char array (in C) that is guaranteed to be large enough to hold any valid absolute path+filename, how big does it need to be.

On Win32, ther

相关标签:
7条回答
  • 2020-12-01 01:27

    You can use pathconf() to figure out at run-time, but there's also a PATH_MAX preprocessor define in <limits.h>.

    0 讨论(0)
提交回复
热议问题