Date: Thu, 1 Apr 93 20:02:20 EST From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: Shawn_McHorse AT fcircus DOT sat DOT tx DOT us Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: popen, pclose, and perror >I have another program which uses the following constants: > _MAX_PATH > _MAX_DRIVE > _MAX_DIR > _MAX_FNAME > _MAX_EXT >I looked through every C reference I have, and could find nothing about >these things. I believe that they are MS-DOS specific, but I have not These are the maximum number of characters, including null terminator, for a filename with path, drive, etc. Values from Borland C 3.0 are: #define MAXPATH 80 #define MAXDRIVE 3 #define MAXDIR 66 #define MAXFILE 9 #define MAXEXT 5 (Your names are slightly different because they are the Microsoft equivalents. Borland defines their constants in DIR.H, and also defines MSC's in STDLIB.H)