title: Are there any free implementations of strcpy_s and/or TR24731-1?
body: <p>I have an old project that is mixed C and C++. It makes extensive use of C strings and of <code>strcpy</code>,<code>strcat</code>,<code>strncpy</code>,<code>strncat</code> etc.  I've uncovered a number of buffer overflows, and I'd like to use more secure functions, such as <code>strcpy_s</code>. MSVC includes those functions, but I need something that will work on various platforms - linux, osx, and windows at the least.</p>
  
  <p>I do know of <code>strlcpy</code>, but as plenty of people have noted (<a href="http://lwn.net/Articles/333934/" rel="noreferrer">example</a>), it really isn't an improvement.</p>
  
  <hr>
  
  <p>So: Are there any free implementations of <code>strcpy_s</code>, <code>strcat_s</code>, etc, or of the entire <a href="http://www.open-std.org/JTC1/SC22/WG14/www/projects#24731-1" rel="noreferrer"><code>TR24731-1</code></a>?</p>
  
  <p>I need something that's either <code>public domain</code> or <code>BSD</code>, but if you know of implementations under other licenses, go ahead and list them - I'm sure someone else will benefit.</p>