[HH] c++ strings?
Mark Woodward
markw at mohawksoft.com
Tue Nov 20 06:12:37 EST 2012
On 11/20/2012 01:55 AM, David Kramer wrote:
>
> You probably want sprintf, which is like printf except it outputs a
> string instead of writing the output to stdout.
>
> http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/
You never, ever, really never, want to use sprintf in any program. Each
and every occurrence of "sprintf" should be replaced by snprintf as soon
as possible. The sprintf call is unbounded is a stability risk as well
as a potential security hole.
>
> _______________________________________________
> Hardwarehacking mailing list
> Hardwarehacking at blu.org
> http://lists.blu.org/mailman/listinfo/hardwarehacking
More information about the Hardwarehacking
mailing list