harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk" <ivan.volos...@gmail.com>
Subject Re: Strategy for Harmony to work with Visual Studio 2005?
Date Thu, 06 Jul 2006 21:02:32 GMT
On 7/6/06, Xiao-Feng Li <xiaofeng.li@gmail.com> 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: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message