Im working on aprogram for entries the struct is:
Code:struct entry { char name[STR_SIZE]; char email[STR_SIZE]; char phone[STR_SIZE]; }; i need to do what is in comments how am i doing? ENTRY *create_Entry(char *name, char *email, char *phone) { /* TO DO: Allocate memory, assign values to fields, return address. */ ENTRY *ptr; ptr = (ENTRY *)malloc(sizeof(ENTRY)); ptr -> name = NULL; ptr -> email = NULL; ptr -> phone = NULL; return ptr; }