Article View: es.comp.os.linux.programacion
Article #8544Re: Problema "Violación de segmento"
From: Helio.es
Date: Wed, 30 Oct 2002 22:37
Date: Wed, 30 Oct 2002 22:37
19 lines
1374 bytes
1374 bytes
Juan Fran wrote:
>
>
>> en donde la variable texto est� definida como: gchar texto[7];
> Perd�n, est� definida como gchar *texto[7];
En alg�n lado tendr�s que reservar la memoria de los siete punteros a
caracteres, no?
gchar texto[7][MAX_TEXTO];
por ejemplo, o:
gchar *texto[7];
for(int i=0; i<7; i++) {
if ( (texto = (gchar *) malloc(MAX_TEXTO * sizeof(gchar))) == NULL)
throw errorcete_de_memoria;
}
Technical Details
Message-ID:
<appn01$3t7nc$1@ID-165255.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!80-25-0-142.uc.nombres.ttd.ES!not-for-mailReferences:
<appj9c$3u7mm$2@ID-110692.news.dfncis.de> <appk6c$3pdjj$1@ID-110692.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,6870004d466e2121 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-10-30 14:37:56 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!80-25-0-142.uc.nombres.ttd.ES!not-for-mail From: "Helio.es" <heltena@hotmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: Problema "Violación de segmento" Date: Wed, 30 Oct 2002 23:37:56 +0100 Lines: 20 Message-ID: <appn01$3t7nc$1@ID-165255.news.dfncis.de> References: <appj9c$3u7mm$2@ID-110692.news.dfncis.de> <appk6c$3pdjj$1@ID-110692.news.dfncis.de> NNTP-Posting-Host: 80-25-0-142.uc.nombres.ttd.es (80.25.0.142) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: fu-berlin.de 1036017473 4103916 80.25.0.142 (16 [165255]) User-Agent: KNode/0.7.1