delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/12/02/20:31:29

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sat, 02 Dec 2006 19:20:51 -0600
Message-ID: <4572251A.680BFA98@yahoo.com>
Date: Sat, 02 Dec 2006 20:15:06 -0500
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research http://cbfalconer.home.att.net
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: string.h -- memccpy() prototype uses "int c, size_t n" w/o leading
underscores
References: <1165096766 DOT 030159 DOT 105280 AT f1g2000cwa DOT googlegroups DOT com>
Lines: 20
NNTP-Posting-Host: 216.195.146.103
X-Trace: sv3-dj3rQUUsfl1uEUaVeGtWIPe0qfjiFRU+uLQ/ylG3zfk5FYkdczG+gom3Smbyx/iOJNjtUM02QEWUc46!tejAko+dq1Ith+2Rax/36OZC5adkiHT/NoCVcuMrOW7IzCLe/rTw2gX1apRLaGg=
X-Complaints-To: abuse AT gwi DOT net
X-DMCA-Complaints-To: abuse AT gwi DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

rugxulo AT gmail DOT com wrote:
> 
> 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).

Why should it?  The scope of those names is only the memccpy()
function.  The only thing that can foul it is a previous "#define c
whatever" statement, etc. or a file scope declaration of c (and I
assume nobody would be that stupid).

-- 
Chuck F (cbfalconer at maineline dot net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>

- Raw text -


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