int make_friends(const char *name1, const char *name2, User *head) {

    int friendstatus = 0;

    User *friendo1 = find_user(name1, head);
    User *friendo2 = find_user(name2, head);

    if (friendo1 == NULL || friendo2 == NULL) {
        friendstatus = 4;

    } else if (friendo1 == friendo2) {
        friendstatus = 3;
        
    }

    int a;
    for (a = 0; a < MAX_FRIENDS; a++) {
        if (friendo1->friends[a] == NULL) {
            break;

        } else if (friendo1->friends[a] == friendo2) {
            friendstatus = 1;
        }
    }

    int b;
    for (b = 0; b < MAX_FRIENDS; b++) {
        if (friendo2->friends[b] == NULL) {
            break;
        }
    }

    if (a == MAX_FRIENDS || b == MAX_FRIENDS) {
        
        friendstatus = 2;
    }

    friendo1->friends[a] = friendo2;
    friendo2->friends[b] = friendo1;

    return friendstatus;
}