delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/12/15:12:59

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Fri, 12 May 2000 15:51:46 -0400
MIME-Version: 1.0
Subject: bzero conflict
Message-ID: <391C2892.27726.9D0A1C@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

DJGPP's <string.h> defines the prototype for bzero as:

void *	bzero(void *ptr, size_t _len);

but the Unix spec defines bzero as:

void bzero(void *s, size_t n);

and for the return value it says:
The bzero() function returns no value. 

This causes a conflict with the gcc snapshot, which complains about the 
mismatch. Should we change accordingly?

Mark

- Raw text -


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