public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Dynamic malloc problem
@ 2000-01-01 10:05 clifford.smith
  2000-01-01 23:26 ` Johnny Favorite (it means "Writhing Tentacle of Death")
  2000-04-01  0:00 ` clifford.smith
  0 siblings, 2 replies; 8+ messages in thread
From: clifford.smith @ 2000-01-01 10:05 UTC (permalink / raw)
  To: help-gcc

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;


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-01 10:05 Dynamic malloc problem clifford.smith
2000-01-01 23:26 ` Johnny Favorite (it means "Writhing Tentacle of Death")
2000-01-02 11:29   ` clifford.smith
2000-01-02 12:50     ` Maurice Fox
2000-04-01  0:00       ` Maurice Fox
2000-04-01  0:00     ` clifford.smith
2000-04-01  0:00   ` Johnny Favorite (it means "Writhing Tentacle of Death")
2000-04-01  0:00 ` clifford.smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).