title: Compiler Error "void value not ignored as it ought to be" in C programming
body: <p>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?</p>
  
  <blockquote>
    <p>[Error] void value not ignored as it ought to be</p>
  </blockquote>
  
  <p>My codes</p>
  
  <pre><code>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);
  
  }
  </code></pre>