Article View: es.comp.os.linux.programacion
Article #6209Re: (Grandes) dudas sobre el funcionamiento de malloc() y realloc()
From: Mario Teijeiro Otero
Date: Mon, 21 Jul 2003 20:59
Date: Mon, 21 Jul 2003 20:59
29 lines
1926 bytes
1926 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Han Solo escribi�:
>float *p
..
> while (*p!='\0'){
Por regla general se debe evitar las comparaciones de igualdad
sobre floats (n�mero reales en general), ya que es casi imposible
que dos n�meros reales sean iguales.
Utilizar comparaciones de igualdad en floats se suele traducir a
gastar varias horas para detectar la fuente del problema.
SAludos
P.D.: De nuevo mis disculpas por el env�o por correo privado.
- --
Al primer tir�n del cordel, todas las cortinas se mueven hacia el otro lado.
-- Ley Reja-Jansen.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/HFQsMKsc+XeZcdwRAtKyAJkBcWFu0uQ/pXgY9LtLY+quq0WjUwCfReKC
k+Zqrkaz3h4vR1iBF0xvSTg=
=y/DE
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<bfhk7e$rhv$2@cernicalo.emeteo.local>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!east.cox.net!peer01.cox.net!cox.net!antonio.escomposlinux.org!cernicalo.escomposlinux.org!not-for-mailReferences:
<86r84po6c8.fsf@pc147.ietcc.csic.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,87b737dc79fbe16 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-07-21 13:59:30 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!east.cox.net!peer01.cox.net!cox.net!antonio.escomposlinux.org!cernicalo.escomposlinux.org!not-for-mail From: Mario Teijeiro Otero <emeteo@escomposlinux.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: (Grandes) dudas sobre el funcionamiento de malloc() y realloc() Date: Mon, 21 Jul 2003 22:59:24 +0200 Organization: Ecolnet Lines: 29 Message-ID: <bfhk7e$rhv$2@cernicalo.emeteo.local> References: <86r84po6c8.fsf@pc147.ietcc.csic.es> NNTP-Posting-Host: 89.red-80-59-254.pooles.rima-tde.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: cernicalo.emeteo.local 1058821166 28223 80.59.254.89 (21 Jul 2003 20:59:26 GMT) X-Complaints-To: emeteo@escomposlinux.org NNTP-Posting-Date: Mon, 21 Jul 2003 20:59:26 +0000 (UTC) User-Agent: KNode/0.7.6