Quote Originally Posted by samus250 View Post
Thanks a lot!

So, I don't have to use malloc to create the first structure, but I need it if I want to create more and more structures on the run? And.. when I do that, I just initialize them by using memset, and I could access it later using pointers?

Wow.. these pointers are powerful.

Oh and I bet I can do this too:
Code:
int main(int argc, char *argv[])
{
	DIR_OPTIONS options={0,0,0,0,0,0}
	DIR_OPTIONS *address=&options;
	
	//call the dir function
	dir(address);
	
	//and to later access the variables I can use
	address->variable
	//or
	options.variable
}
Am I right?

Thanks a lot Elysia. You really do know everything!
Exactly.