title: using SDK specific API or standard c functions
body: <pre><code>gcc (GCC) 4.7.2
  PJ SIP 2.1
  </code></pre>
  
  <p>Hello,</p>
  
  <p>I am developing an application that will use the PJSIP API.</p>
  
  <p>Just looking at the API documentation and I see some functions that seem to be just wrappers for the standard C library. i.e. <code>pj_memset</code>, <code>pj_strncpy</code>, <code>pj_strlen</code>, etc.</p>
  
  <p>I can see some alternatives that might be worth considering <code>pj_strncpy_with_null()</code> which will always NULL terminate a string. A another advantage could be is that the pjsip uses a <code>pj_str_t</code> structure to store the string and the size. Which could be better than using a normal C string.</p>
  
  <p>And is there any point using <code>pj_size_t</code> over <code>size_t</code> which is portable anyway?</p>
  
  <p>The link for quick reference is here:</p>
  
  <pre><code>http://www.pjsip.org/pjlib/docs/html/group__PJ__PSTR.htm
  </code></pre>
  
  <p>It there any real advantage using PJSIP over the standard C library?</p>
  
  <p>Many thanks for any suggestions,</p>