Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]

I got that error which cant figure out. I look over related questions but I dont give a meaning someone show me which part do I need to fix?

[Error] void value not ignored as it ought to be

My codes

void getEdge(char str[],char *token){
    *token = strtok(str, "_,");
    while (token != NULL )
    {
      //  printf("%s\n", token);
        token = strtok(NULL, "_,");
    }

}

void getEdge(char str[],char *token);

int main () {
    char arr[] = "A_B_10,A_F_6,B_C_6,C_B_10,D_A_3";
    char *toke;
    char result;
    result = getEdge(arr,toke);
    printf("%s\n",result);

}

Leave a Comment