On 7/6/06, Xiao-Feng Li <[EMAIL PROTECTED]> wrote:
Visual Studio 2005 (Whidbey VC8) C runtime library (CRT) has changed some compilation rules and APIs for better security or ISO/ANSI conformance. Many changes are "breaking", i.e., incompatible. For example, it adds safer counterparts for many functions like `strcpy_s' for `strcpy', `sprintf_s' for `sprintf', etc. In this example, the safer version has an additional parameter asking for the buffer size of the destination string to prevent buffer overflow [1] .
Just wondering. What is the function sprintf_s for? ISO C99 has another function: snprintf() which makes the job. Linux has the second function. It looks like that this functions should go to port library from now on. -- Ivan --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]