X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Mok-Kong Shen Newsgroups: comp.os.msdos.djgpp Subject: Re: Different memory allocations were to the same location Date: Sat, 04 Jun 2011 15:34:48 +0200 Organization: albasani.net Lines: 12 Message-ID: References: <4DEA311B DOT 3090607 AT t-online DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net 0t2fvqCyUgz7CY/e9FSCsLvN1tNvcS/sgt0jUxv9F3dmCzE2xyFHcqYuOFIpUkRRE8NZqwFBAyO4WGZiacliPA== NNTP-Posting-Date: Sat, 4 Jun 2011 13:34:36 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="MhV+dfQzJapsUnkTCuok/Gf9x1Lzn2qe8K9h31wYtE4YNtPtKNQpwjC7lx0pi2iPfHdKcKpmsJu1XRuGnOUxehRyiR5HGV0n3WYE6/kOovStWqZzlzY2SNeeRu0KY0iV"; mail-complaints-to="abuse AT albasani DOT net" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <4DEA311B.3090607@t-online.de> Cancel-Lock: sha1:N+O3V9STsGhIAT9URATamA8JPD8= Bytes: 1742 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Am 04.06.2011 15:20, schrieb Hans-Bernhard Bröker: > By fixing your program. I'll drop you a hint: where do you think your > code writes anything to variables var1 or var2? My C knowledge is humble. But what was done in my function is the same as in the example of http://www.diffen.com/difference/Calloc_vs_Malloc isn't it? So a valid pointer to a memory location was assigned in my understanding to the formal parameter uh, hence to vec1 or vec2. Please kindly help a bit more. M. K. Shen