snprintf for HC12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

snprintf for HC12

529 Views
kfriedman
Contributor I

Hello,

 

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?

 

Thanks!

Labels (1)
0 Kudos
1 Reply

370 Views
CompilerGuru
NXP Employee
NXP Employee
0 Kudos