I am having trouble finding this information, and trial and error is telling me that the value is very high. I figured I would ask the community to see if anyone knows and can point me to an apple page that confirms the length for Lion. All I know is it is larger that Snow Leopard.
Old, but I found an answer:
#include <sys/syslimits.h>
and then it'll have a PATH_MAX constant as a #define. In my case,
char filenameBuffer [PATH_MAX];
You could hardcode 1024 as the maximum path, but using a constant like that makes your code scalable with new releases
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