there are local and global variables. using local variables is not very useful cause they are gone after the function call
i said be careful with pointers in another thread. i would use memcpy/strcpy to copy the names/text values/etc into the structure.
this only allocates memory for 10 bytes not for 10 items