Hi All,
I am trying to use the snprintf function. However, when I am trying to convert a number (integer or a float) to a char array the software get stuck while running. Note that the code compiles without any errors or warnings.
Thanks in advance.
For example:
char buffer[50];
double meter=4.3;
snprintf(buffer, 50, "gal"); // works
snprintf(buffer, 50, "%09.1f gal", meter); // doesn't work