somewhat n00bish question...

Posted By: Caermundh

somewhat n00bish question... - 07/13/08 18:08

So I have just started in on a new project and have made the move to A7 from A6. First thing i notice about the new language is that I can use structs!!! YAAAAAAA!!!!

My question is, after declaring a struct such as:

typdef struct
{ string* name[50];
string* desc[500];
int x;
int y;
} my_struct

Is there a way to dynamically allocate instances of this struct during runtime? Is there some c-lite equivalent of the Ansi-C malloc() function?
Posted By: MrCode

Re: somewhat n00bish question... - 07/14/08 23:08

yes, you can malloc(sizeof(my_struct)). At least, that's what I did.
Posted By: Caermundh

Re: somewhat n00bish question... - 07/14/08 23:32

i can just use malloc()?!? LOL. Thanks ;D

I wonder how much C you can get away with in lite-c?
Posted By: Joozey

Re: somewhat n00bish question... - 07/15/08 00:49

Look in the beta and forecast what can and can not yet be done wink
© 2024 lite-C Forums