www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/15/19:03:28

Date: Thu, 15 Sep 1994 13:11:50 -0400
From: davis AT amy DOT tch DOT harvard DOT edu ("John E. Davis")
To: dj AT ctron DOT com
Subject: Re: Silly question
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>> 
>>    extern int something (const char **);
>
>I had this problem.  The correct prototype is this:
>
>	extern int something (char * const *);
>
>See <process.h> for examples.

   You hit it exactly.  I am still using 1.11 and the system calls I was
referring to are those listed in  process.h.  In that file, the prototypes
are of the form:

    extern int something (const char **);
    
So are you saying that these have been changed in 1.12 to read:

    extern int something (char * const *);
    
which is a ``pointer to a constant pointer to a char'' which is compatable
with borland's:

    extern int something (char *argv[]);
    
Thanks,
--John

- Raw text -


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