is there a segmentation fault?
token = strtok(line, " ");

if (token[0] != '\t' && token[0] != '#' && token[0] != '\n') {
    target = token;
    token = strtok(NULL, " ");
    while (token != NULL) {
        if (token[0] == ':') {
            token = strtok(NULL, " ");
        } else {
            fprintf(stdout, "hello");
        }
        token = strtok(NULL, " ");
    }
}
