    User *user1 = find_user(name1, head);
    User friends1[] = malloc(sizeof(User*)*MAX_FRIENDS);
    int i = 0;
    while ((*user1).friends[i] != NULL){
            friends1[i] = (*user1).friends[i];
    }

typedef struct user {  
    char name[MAX_NAME];  
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.  
    struct post *first_post;  
    struct user *friends[MAX_FRIENDS];  
    struct user *next;  
} User;  
friends1 should be an array that stores all user1's friends