Any buffer over runs in this char 'toHexStr' code?

Started by
19 comments, last by SiCrane 12 years, 5 months ago
I'm wondering if sprintf_s might be useful here (if you're targeting Windows) for guarding against buffer overruns.

If your program is targeting non-Windows platforms (like Mac or Linux), I wonder if there's equivalents to sprintf_s out there.
Joshua Hoffmann
Developer, Land of Smiley Cubes
landofsmileycubes.com
Advertisement
The standard equivalent is snprintf(), though it's C99, so some compilers still don't support it, or support idiosyncratically (such as MSVC).

This topic is closed to new replies.

Advertisement