Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

replacments for sprintf and sscanf

What would be the ideal replacements for sprintf and sscanf, according to
the art : "15 Tips for Secure Win32 Programming "
Thanks,
San
[147 byte] By [San] at [2007-11-9 23:50:00]
# 1 Re: replacments for sprintf and sscanf
I don't know what "15 Tips for Secure Win32 Programming " is.
But a good replacement for sprintf and sscanf is the STL stream template classes.
--
Randy Charles Morin
http://www.kbcafe.com

Feel free to contact me by private email or messenger
randy@kbcafe.com
morin_randy@hotmail.com

"San" <sanpote@hotmail.com> wrote in message news:3c3d2b24$1@147.208.176.211...
>
> What would be the ideal replacements for sprintf and sscanf, according to
> the art : "15 Tips for Secure Win32 Programming "
> Thanks,
> San
Randy Charles Morin at 2007-11-12 0:14:44 >
# 2 Re: replacments for sprintf and sscanf
"San" <sanpote@hotmail.com> wrote:
>
>What would be the ideal replacements for sprintf and sscanf, according to
>the art : "15 Tips for Secure Win32 Programming "
>Thanks,
>San

the 'n' versions - _snprintf and _snscanf

but remember - YOU MAY TRUNCATE INPUT with these functions... be warned!
Michael Howard at 2007-11-12 0:15:51 >