www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/04/09:44:17

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Message-Id: <199901041442.PAA27857@juno.erisoft.se>
Subject: Re: FAT32X and DJGPP
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Mon, 4 Jan 1999 15:42:47 +0100 (MET)
Cc: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Eli said:

> > int /* 0 == error; 1 == result_str filled in. */
> > _get_fs_type(const int drive /* drive number (1=A:). */
> >            , char *const result_str  /* String to put result in. At
>                ^^^^^^^^^^^^^^^^^^^^^^
> Why does this have to be "char * const"?  It might be quite a nuisance 
> for some programs compiled with -Wall or stricter switches, and I don't 
> see any reason for that.  Shouldn't "char *" be enough?

All I'm (the code is) saying is that the pointer is constant.


The other comments will be assimilated.


Right,

								MartinS

- Raw text -


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