On Thu, 2004-02-12 at 14:46, Carl Douglas wrote: > > > I believe stdlib.h or stdio.h has this #defined as MAX_PATH? > > Not on my system > > $ grep MAX_PATH /usr/include/stdlib.h > > $ grep MAX_PATH /usr/include/stdio.h > I get lots of hits with this: > > grep -r "PATH_MAX" /usr/include/ Quite right. Looking through the output of "grep", PATH_MAX is canonically defined in "limits.h". The maximum length of a filename (and therefor, a sensible document name) is
#define PATH_MAX 4096 /* # chars in a path name including nul */ Normally you will be limited to 4095 (4K-1) characters in a filename, unless you use some of the upper reaches of the Unicode character set (when fewer characters will be available to you). -- Michael JasonSmith http://www.ldots.org/
