www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/04/03/14:29:02

Date: Sat, 3 Apr 93 10:37:01 PST
From: carryer AT sunrise DOT Stanford DOT EDU (Ed Carryer)
To: Shawn_McHorse AT fcircus DOT sat DOT tx DOT us
Cc: peprbv AT cfa0 DOT harvard DOT edu, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: popen, pclose, and perror

[Lines Deleted]
   > 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
   > 
   >Thanks...I had figured they would probably be specific to some compiler
   >of another.  Anyway, does anyone know what these constants are supposed
   >to mean.  I can throw in those #defines in a header file somewhere, but
   >it would be Real Nice if I knew what they meant.  Thanks, and I'll chat
   >with you later...

These constants are to be used in dimensioning arrays that will be used
with the _splitpath() (MSC) function. This function takes a complete
path string and splits it up into the various components.
from quick help:
  Include:   <stdlib.h>
  Syntax:    void _splitpath( char *path, char *drive, char *dir,
                              char *fname, char *ext );
  See also:  _fullpath, _makepath

ed
--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019