This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Dynamic malloc problem
- To: help-gcc at gnu dot org
- Subject: Dynamic malloc problem
- From: "clifford.smith" <clifford dot smith at libertysurf dot fr>
- Date: Sat, 1 Jan 2000 18:57:31 +1200
- Newsgroups: gnu.gcc.help
- Xref: wodc7nx0 gnu.gcc.help:2325
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;