User *new_user_ptr = (User *) malloc(sizeof(User));
*new_user_ptr->name = (char *) malloc(MAX_NAME * sizeof(char));
strncpy(new_user_ptr->name, name, sizeof(new_user_ptr->name));
*new_user_ptr->profile_pic = (char *) malloc(MAX_NAME * sizeof(char));
*new_user_ptr->first_post = (Post *) malloc(sizeof(Post));
*new_user_ptr->friends = (User *) malloc(MAX_FRIENDS * sizeof(User));
*new_user_ptr->profile_pic = (User *) malloc(sizeof(User));
allocate memory for each attribute of the struct user