Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

malloc handling - identifier not found issue

Tags:

c

I'm using visual studio to write a c code.

This is the malloc code line i was told to use:

root = (Coor)malloc(sizeof(Coor));

It doesn't let me use it for the following error:

identifier not found

Can anyone tell me why it happens and how to fix it?

Thanks,

like image 499
Nimrod Shai Avatar asked Jun 22 '13 18:06

Nimrod Shai


1 Answers

Please check if you have included <stdlib.h> and <malloc.h>.

like image 199
Steven Huang Avatar answered Sep 29 '22 16:09

Steven Huang