My task right now is to make a linked list with a friends list. Basically, I have one file that is full of 20 users (which I can successfully scan into an array) and another file formatted as such:

~~~~~~
name1
name2
name3
~~~~~~
name4
name5
etc...

Where the first name after the divider is the person and the following names are his or her friends.

I'm sorry if I'm not very clear, but my goal is to scan this file and maked a linked list with each user to his or her friends.

A lot of my code is commented out because it wasn't working.

Code:
typedef struct friend friend_t;


typedef struct person
{
    char name[LEN];
    int age;
    int id_number;
    friend_t* friends;
}    person_t;


struct friend // defines a relationship; carries no data.
{
    person_t *user;
    struct friend* next;
};

void *find_friends(person_t *s, friend_t *friend_list, char *separator)
{
    FILE* friends = fopen("friends.dat", "r");
    char temp[SIZE];
    int i, j;
    
    // for(i=0;i<SIZE;i++)
    fscanf(friends, "%s", temp);


    /*
    for(i=0;i<SIZE;i++)
        if(temp[i] =! separator)
            friend_list[i].user = temp[i];
                for(j=i;j<SIZE;j++)
                    if(temp[j] =! separator)
                        friend_list[i].next = temp[j]; */
                        
    friend_t *list = (friend_t*)malloc(sizeof(friend_t));
    list->user = find_user(person_t *s, temp);
}
I'm not clear on how to use linked lists. What do?