Can anyone please tell me how to find the system value for _POSIX_PATH_MAX
in Linux mint? I know that it is available in the <limits.h> file but I do not know how to find its value.
The tool to use, according to POSIX, is named getconf(1):
$ getconf _POSIX_PATH_MAX
256
One more way to get it's value.
#include "stdio.h"
#include "unistd.h"
#include "limits.h"
int main()
{
printf ("Value :: %d \n", _POSIX_PATH_MAX);
return 0;
}
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