AnsweredAssumed Answered

Problems trying to use sprintf

Question asked by Juan Ignacio Troisi on Jul 23, 2015
Latest reply on Jul 23, 2015 by Juan Ignacio Troisi

Hello. I am using FRDM KE02 + CWIDE and Processor Expert.


When trying to use fuctions such as strcpy of sprintf the program builds correctly, but de MCU gets stucked when reaching those functions. Obviously, I have included the libreries

#include <stdio.h>

#include <string.h>


For instance, this doesnt work:


int h=33;
char str2;
sprintf(str2, "Value of N = %d",h);