On 03/14/2010 03:15 PM, Bruno Haible wrote:
Here, the calling convention of providing a string with a size, and the size must include the trailing NUL byte, is so unusual that the probability of a mis-use of the API is likely 10% or more.
You can always use assert so that #define NDEBUG would compile the check out.
Paolo