Why did you do this part:

Code:

MYSTRUCT* mystruct = malloc(sizeof(MYSTRUCT));



Why did you malloc? Will it not work without malloc?


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.