title: Writing a character array to a file in C
body: <p>Is this code right for writing a character array (referenced by a char pointer) to a file?</p>
  
  <pre><code>const char* charBuf;
  
  FILE *outputFile = fopen("output", "a");
  fprintf(outputFile, "%s\n", *charBuf);
  fclose(outputFile);
  </code></pre>
  
  <p>Assume <code>buf</code> points to some character array.</p>