title: C - raw print all non-printable characters in a string with printf
body: <p>If I have a  <code>char* s</code>and I'm printing it with printf like so:</p>
  
  <pre><code>printf("%s\n", s);
  </code></pre>
  
  <p>How can I force <code>printf</code> to print the non-printable characters (as something other than question marks, which I think is the default)? Like if one were to use <code>ls --literal</code>, how does it do what it does?</p>
  
  <p>I know about <code>isprint()</code> but am not sure where to go from there. </p>