Thread
:
crash in malloc() ?
View Single Post
Re: crash in malloc() ?
(#
6
)
Cheeseh
[rcbot]
Status:
Offline
Posts: 361
Join Date: Dec 2003
Location: China
Re: crash in malloc() ? -
08-04-2004
you need to write struct before things decalred as structs and not typedef structs, so yes you probably need to write : malloc(sizeof(struct PATH)) instead. But if the compiler didn't give any warnings , I dunno.
RCBOT2 project
http://sourceforge.net/projects/rcbot2/
Cheeseh
View Public Profile
Send a private message to Cheeseh
Visit Cheeseh's homepage!
Find More Posts by Cheeseh