Article View: es.comp.os.linux.programacion
Article #16143Re: Preguntillas C y Linux.
From: batsman
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
49 lines
2883 bytes
2883 bytes
-----BEGIN PGP SIGNED MESSAGE-----
>> El 02 May 2000 22:34:58 +0200, algo o alguien alter�
>> el estado del teclado de Ignacio Arenaza
>> y al poco rato lleg� a es.comp.os.linux.programacion lo siguiente:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>>>>>> "Santiago" == Santiago Romero <nop@todolinux.org> writes:
>
>
> Santiago> �y que solucion recomiendas que no sea una lista para
> Santiago> estos tipicos casos en que tienes que guardar un numero
> Santiago> de elementos pero no conoces cuantos hay? (leer de
> Santiago> fichero las reglas de filtrado).
>
>No digo que la solucion sea mala (yo la he usado muchas veces), sino
>que la implementacion de la solucion es mala.
Pero ser�a mejor hacer un realloc aumentando el tama�o digamos en 10
elementos cada vez y llevar la cuenta de memoria disponible dentro de
la propia estructura, as� te evitas unas cuantas llamadas a realloc (y
la posibilidad de que falle en una de ellas).
- --
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
Real email: batsman dot geo at yahoo dot com
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]
iQEVAwUBORH+zb0Y27yr0iefAQGtKgf/Vg8yrZKthn60MyoRhAJKRQw9yn/spM2i
q33beZcgmTMDT58PZSE7XKr1yENvUYPrU9PljLFeeFyP7vRGsN283jDE2jIrCuKF
2YUrMRie0SsA6ztUT5eWfjNazz/88wtXXQOAVNGa1XxlBu7L6IN7YW8SJFLBzcMt
CO28ADze+8FYbsbYUcqwMglxuWDTMJFX6nltBaPvrpdzPCFHEX+qEgVzQchXvoUC
1ZByocOUooqGwA7cXJ8de0gXBf9bClmkUdC0jR9IWnR5gJrdfm+/oKo+xRo8/ZmR
VH5TIhh02VPKKHpIKjX3M6Sxw/AZmBSbWWIgPfEpr/5mHZ/XQDU/xg==
=GmLF
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<hsuse8.bp1.ln@simpsons4ever>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8goisq.33m.nop@compiler.linux.es> <t8fje8.ie.ln@simpsons4ever> <slrn8gr96s.367.nop@compiler.linux.es> <87em7mm0xe.fsf@eb2ebu.ampr.org> <slrn8gtagi.m2.nop@compiler.linux.es> <87snw03d3h.fsf@eb2ebu.ampr.org>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,21477be2e2f46d7 X-Google-Attributes: gidf86c8,public From: batsman@simpsons.for.ever (batsman) Subject: Re: Preguntillas C y Linux. Date: 2000/05/04 Message-ID: <hsuse8.bp1.ln@simpsons4ever> X-Deja-AN: 619316565 Content-Transfer-Encoding: 8bit References: <slrn8goisq.33m.nop@compiler.linux.es> <t8fje8.ie.ln@simpsons4ever> <slrn8gr96s.367.nop@compiler.linux.es> <87em7mm0xe.fsf@eb2ebu.ampr.org> <slrn8gtagi.m2.nop@compiler.linux.es> <87snw03d3h.fsf@eb2ebu.ampr.org> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@news.wanadoo.es X-Trace: m2newsread.uni2.es 957475971 62.36.40.24 (Thu, 04 May 2000 23:32:51 MET DST) Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/ Mime-Version: 1.0 User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: see_signature-mira_firma NNTP-Posting-Date: Thu, 04 May 2000 23:32:51 MET DST Newsgroups: es.comp.os.linux.programacion