Kirk Friedman

snprintf for HC12

Discussion created by Kirk Friedman on Jul 22, 2011
Latest reply on Jul 23, 2011 by CompilerGuru



New to the forum.  Using codewarrior 5.9.0 and it doesn't look like it has snprintf.  It would be very useful since I want to make certain that a string does not overflow the buffer being set to contain it.


Looks like code warrior uses their own internal functions vprintf and set_printf instead of the C standard stuff to implement printf and sprintf.  Anyone have any ideas or code snippets I can use to implement snprintf?