Path length

Started by
1 comment, last by 255 21 years, 6 months ago
Is there a limitation to the length of a file path (in Windows/Linux)?
Advertisement
Under Windows, there''s the MAX_PATH constant which gives you the maximum path length. You find it in windef.h :

#define MAX_PATH 260

Don''t know for Linux...
In Windows, MAX_PATH is defined as 260 characters.

________________________________________________"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

This topic is closed to new replies.

Advertisement