Folks,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Would it not be possible to have an enhanced operation which you send, by way of a parameter, the maximum number of characters you are prepared to allow it to copy/concatenate. Cunningly, that might usefully be the remaining size of buffer that you&#39;ve allocated.<br>

<br>
Obviously(?) there must be a simple reason why not.<br></blockquote><div><br>? Yes, they didn&#39;t think about it at the time. If they had, they would have. As &#39;they&#39; have now.<br><br>So, you now have the option of using strcpy_s(var, maxlen, value), having malloced the var to give you the space. Except most of the textbooks don&#39;t mention the newer, possibly secure, functions.<br>
<br>M.<br><br></div></div><br clear="all"><br>-- <br>Matthew Pemble<br><br><br>