Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: ftp bug report To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/