title: Determine if FILE * is writable
body: <p>Is there a way to tell what mode a <code>FILE *</code> was opened?</p>
  
  <p>Specifically I need to tell if a file stream is writable.  Either just the true/false result of whether it's writable, or the <code>const char *</code> of the mode itself is good.</p>