PATH_MAX

Dennis Schridde devurandom at gmx.net
Tue May 15 13:33:07 EDT 2007


Hi!

Does PhysFS provide something like POSIX' PATH_MAX or Windows' MAX_PATH?
I support a game which was originaly ported from Windows and stores copies of 
directory names in several locations. Therefore it needs to know the maximum 
length of paths that PhysFS accepts or returns.
Or would it be safe to use the systems definition of PATH_MAX/MAX_PATH or an 
own value, for that matter?

--Dennis

PS:
While walking the headers, I found a minor naming inconsistency:
int __PHYSFS_utf8strcasecmp(const char *s1, const char *s2);
int __PHYSFS_utf8strnicmp(const char *s1, const char *s2, PHYSFS_uint32 l);

str(n)casecmp is the UNIX variant, while str(n)icmp is the Windows variant.
Maybe you want to change that for consistency, as it is only an internal 
symbol and thus should not affect the external binary interface. I can send a 
patch if you so desire.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://icculus.org/pipermail/physfs/attachments/20070515/77d5ca92/attachment.pgp>


More information about the physfs mailing list