🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problema "Violaci�n de segmento"

#8564
From: Juan Fran
Date: Thu, 31 Oct 2002 18:37
28 lines
1694 bytes
"Helio.es" <heltena@hotmail.com> escribi� en el mensaje
news:appn01$3t7nc$1@ID-165255.news.dfncis.de...
> 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;
> }
>

Hey, muchas gracias!!!, caso resuelto, ha sido a�adir el c�digo y todo
perfecto.  Muchas gracias,

Juan
Technical Details
Message-ID: <aprt8r$3qu3t$1@ID-110692.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!140-mala-x5.libre.retevision.ES!not-for-mail
References: <appj9c$3u7mm$2@ID-110692.news.dfncis.de> <appk6c$3pdjj$1@ID-110692.news.dfncis.de> <appn01$3t7nc$1@ID-165255.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-31 10:37:19 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!140-mala-x5.libre.retevision.ES!not-for-mail
From: "Juan Fran" <jfvera2000@yahoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problema "Violaci�n de segmento"
Date: Thu, 31 Oct 2002 19:37:01 +0100
Lines: 30
Message-ID: <aprt8r$3qu3t$1@ID-110692.news.dfncis.de>
References: <appj9c$3u7mm$2@ID-110692.news.dfncis.de> <appk6c$3pdjj$1@ID-110692.news.dfncis.de> <appn01$3t7nc$1@ID-165255.news.dfncis.de>
NNTP-Posting-Host: 140-mala-x5.libre.retevision.es (62.83.104.140)
X-Trace: fu-berlin.de 1036089437 4028541 62.83.104.140 (16 [110692])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000