delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/19/14:17:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040219191649.40744.qmail@web14309.mail.yahoo.com>
Date: Thu, 19 Feb 2004 11:16:49 -0800 (PST)
From: Thomas Mellman <tmellman AT yahoo DOT com>
Subject: Re: ftp bug report
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Brian Ford wrote:
>> Oh, I hope there's an answer section in the back
>> of the book.
>>
>Hint: realloc can move the data, returning a different base address.


Oh.  I guess I read the man page wrong:

 The realloc() function changes the size of the block of memory pointed to
  by the pointer parameter to the number of bytes specified by the size
  parameter, and returns a pointer to the block. The contents of the block
                                      ^^^ 
  remain unchanged up to the lesser of the old and new sizes, and the con-
  tents of any memory added beyond the limit of the old size is undefined.


Admittedly, that was from a certain Unix-box manufacturer.  Thanks to your hint,
I checked the cygwin man page, and it was much clearer!



__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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