delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/12/02/17:01:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: rugxulo AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: string.h -- memccpy() prototype uses "int c, size_t n" w/o leading underscores
Date: 2 Dec 2006 13:59:26 -0800
Organization: http://groups.google.com
Lines: 10
Message-ID: <1165096766.030159.105280@f1g2000cwa.googlegroups.com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1165096771 6465 127.0.0.1 (2 Dec 2006 21:59:31 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sat, 2 Dec 2006 21:59:31 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: f1g2000cwa.googlegroups.com; posting-host=65.13.115.246;
posting-account=qvj7NA0AAABallzf-E3FtUCXEd65I-J8
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Here's what STRING.H from DJGPP (2.03p2 or 2.04 beta) says:

void *	memccpy(void *_to, const void *_from, int c, size_t n);

Am I wrong or shouldn't those be "_c" and "_n" instead? This clashes
with program's namespace, right? (At least, a program of mine
complained until I changed it).

Anyways, kudos everybody on all your great programs! DJGPP forever!  :-)

- Raw text -


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