title: C - Printing first letter of a string using pointers
body: <p>Im currently working on a project for college and i have the following function, which receives a line (string) and divides it into words:</p>
  
  <pre><code>static const char separators[] = {' ','\t',',',';','.','?','!','"','\n',':','\0'}; 
  
  void split(char *line){
      char *token = strtok(line, separators);
      while(token!=NULL) {
          strtolower(token);
          printf("%s \n", token);
          /* rest of code belongs here */
          token = strtok(NULL, separators);
      }
  }
  </code></pre>
  
  <p>For testing purposes, I wanted to print the first letter of the string <code>token</code>, however it prints the whole string and whenever i use other methods <code>(*token, token[0])</code> it creates an error stating that <code>%s</code> expects type <code>*char</code> and not <code>int</code>. </p>
  
  <p>How can i print only the first letter of the string, for future implementation in my code?</p>