Quote:
Don't be afraid, I am from the Internet, ma'am! ;-)

Shouldn't that raise a grave fear instead? grin.

I do believe you need to typecast the newly allocated memory block pointer to your desired structure. It's required in C, not sure if the Lite-C compiler complains about it.
Code:
 ms = (mystruct*)malloc(sizeof(mystruct));     // allocate memory.
 ...
 a = (int)malloc(sizeof(int) * 23);



Last edited by Joozey; 11/20/08 23:24.

Click and join the 3dgs irc community!
Room: #3dgs