🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12362

Re: Duda sobre realloc

#12362
From: Gonzalo Paniagua Javier
Date: Fri, 03 Aug 2001 07:15
9 lines
1489 bytes
Seba <s_garcia@speedy.com.ar> escribi�:
> Buenas. Tengo una duda acerca del realloc. Si yo tengo en un puntero de 
> n bytes y despues lo aumento o disminuyo de tamanio con el realloc, 
> los contenidos anteriores los sigo guardando o en el nuevo puntero solo
> tengo basura?

	Mantienes el contenido y, tal vez, la direcci�n de memoria. El
	tal vez se cumple si el proceso dispone de memoria libre
	contigua a la zona alojada por el puntero antiguo.
Technical Details
Message-ID: <h6jdk9.1a.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.64.68.27!newsgate.cistron.nl!skynet.be!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr01.ono.com.POSTED!not-for-mail
References: <20010803114138.7b70f3ca.s_garcia@speedy.com.ar>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,db6b20a1b59e472c
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-03 00:15:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.64.68.27!newsgate.cistron.nl!skynet.be!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr01.ono.com.POSTED!not-for-mail
From: Gonzalo Paniagua Javier <gpanjav@jazzfree.com>
Subject: Re: Duda sobre realloc
Newsgroups: es.comp.os.linux.programacion
References: <20010803114138.7b70f3ca.s_garcia@speedy.com.ar>
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.7-ac3 (i586))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <h6jdk9.1a.ln@127.0.0.1>
Lines: 10
Date: Fri, 03 Aug 2001 07:15:43 GMT
NNTP-Posting-Host: 62.42.14.67
X-Trace: newsr01.ono.com 996822943 62.42.14.67 (Fri, 03 Aug 2001 09:15:43 MET DST)
NNTP-Posting-Date: Fri, 03 Aug 2001 09:15:43 MET DST