title: Supply maximum string length to a function
body: <p>When defining a function which has a char array as one of its arguments, is it recommended to always pass the maximum array length as well as an extra argument? For example:</p>
  
  <pre><code>int somefunction(char* inputarray, int maxsizeofarray)
  </code></pre>