delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/20/19:44:27

From: Robert DOT Baron AT IGW DOT TRUST DOT CS DOT CMU DOT EDU
Subject: bcmp, bcopy, bzero
20 Oct 1997 19:44:27 -0700 :
Message-ID: <877390403/rvb.cygnus.gnu-win32@IGW.TRUST.CS.CMU.EDU>
To: gnu-win32 AT cygnus DOT com

Speaking of ex FUN!  in string.h we define: 

int      _EXFUN(bcmp,(const char *, const char *, size_t));
void     _EXFUN(bcopy,(const char *, char *, size_t));
void     _EXFUN(bzero,(char *, size_t));

but both linux and netbsd use:
int      _EXFUN(bcmp,(const void *, const void *, size_t));
void     _EXFUN(bcopy,(const void *, void *, size_t));
void     _EXFUN(bzero,(void *, size_t));


which does seem more appropriate for the definitions.  The "cons char *,
causes the need for endless casts in some programs I'm porting.  Could
I propose that we pick up the definition that the other OS's use.  What
is thetechnical reason for our choices.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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