Dynamic malloc problem

clifford.smith clifford.smith@libertysurf.fr
Sat Jan 1 10:05:00 GMT 2000


Hello,

I am writing a chess prog and I have the following problem:

sine I allocate memory with malloc for table in the main() it works
perfectcly. As soon as I try to allocate this memory in a function (void
my_funct() ... ) I get a segm. fault.

What can I do. Is there another way to dynamicaly allocate mem ?

Thanks,
serge;




More information about the Gcc-help mailing list