I have to read in the first three characters in each line in a file into an array of Strings. Why isn't this working?

```
int getName(FILE *inFile, char name[MAX][4]){

    char *line = NULL;
    char *word = NULL;
    int counter=0;  

    while(fgets(line,sizeof(line),inFile) != NULL){

        sscanf(line, "%c%c%c\n", word);
        strcpy(name[counter], word);    
        counter++;
    }
    return counter;
}

```