From mboxrd@z Thu Jan 1 00:00:00 1970 From: "clifford.smith" To: help-gcc@gnu.org Subject: Dynamic malloc problem Date: Sat, 01 Jan 2000 10:05:00 -0000 Message-id: <84lf9k$i7i$1@news4.isdnet.net> X-SW-Source: 2000-01/msg00001.html 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; From mboxrd@z Thu Jan 1 00:00:00 1970 From: "clifford.smith" To: help-gcc@gnu.org Subject: Dynamic malloc problem Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <84lf9k$i7i$1@news4.isdnet.net> X-SW-Source: 2000-q1/msg00001.html Message-ID: <20000401000000.t_Jc_08BARuhwoimmkiPsfrq0rEJo5TExR-7ADd2r0E@z> 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;