Dynamic Memory Allocation in C

Tsakiris Yannis orb at studiofm1.cs.teiher.gr
Thu Nov 27 10:51:01 EET 1997



On Thu, 27 Nov 1997, Fotopoulos Ilias wrote:

> 
> Loipon, deite to parakatw
> 
> main(int argc, char **argv)
> {
> 	char	koko[strlen(argv[0])] /* 1 */
> 	...
> }

xa! poly kalo! kalitera omws na mi to xrisimopoioume..
de prepei na einai poli portable aftou tou eidous oi
protaseis :)

mh ksexname oti otan leme char koko[5]; sti pragmatikotita
s'ekeino to simio ekteleite mia eswterikh malloc kai sto
telos alli mia free an xriastei, opote de 8a einai diskolo
to size tis malloc na einai metablito. pantws den to iksera
afto...

Yannis T.


--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list