Best way on a unix, is to use PATH_MAX if it's defined, else then check to see
if pathconf("/", _PC_PATH_MAX); returns something and use that, and if that
fails guess at a constant.  I'd use 4096 just for fun...  

Isaac

On 30-Aug-99 Tom Spindler wrote:
>> someone had brought up the question about the length of a path. does
>> anyone have a good way of figuring it out for a platform?
> 
> I'd use some arbitrary number, like 256, because a) there seems to be
> few standard #defines for it, and b) filename length is filesystem
> dependent anyway.
> 

Reply via email to