delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/04/18/12:12:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Tue, 17 Apr 2007 12:21:28 -0500
Date: Tue, 17 Apr 2007 10:21:25 -0700
From: Jim Michaels <NOSPAMFOR-jmichae3- AT yahoo DOT com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: missing ANSI functions in memory.h
Message-ID: <mo2dnaEnpYOFn7jbnZ2dnUVZ_segnZ2d@comcast.com>
Lines: 15
NNTP-Posting-Host: 24.20.110.103
X-Trace: sv3-K0gqaImok0yy4WwxU2r8S9TdiB3THDxG3GxAT1V9iPvACuLKGKS6KF23m5H6UzP8ei4Ca3d+dNa9AKe!G5NUks7xcX+wEyo0UNyaFrfJtvsnCsG2vtiAwUtGBFG2c7au8KYjq7mPibjR6ApINZ4CtA2iN1/X!mKM0jHTtbdChz/713i1eFP5rfATnWg==
X-Complaints-To: abuse AT comcast DOT net
X-DMCA-Complaints-To: dmca AT comcast 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.34
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I tried to find the proper memory.h in all the files I could, but I 
didn't seem to find anything.

malloc is defined, calloc is defined, free is defined.  but where are 
the other functions like memset and memcpy?

The documentation I saw in MSDN said it was an ANSI function.
when I #included <memory.h> and compiled with DJGPP's gcc, it gave me 
the error:
In copy constructor 'var_array::var_array(const var_array&)':
124.cc(20) Error: error: 'memcpy' was not declared in this scope

in MS's implementation it was defined in both memory.h and string.h

I am not sure what the ANSI standard did say however.

- Raw text -


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