Search the Community
Showing results for tags 'sscanf'.
This snippet does not give the expected results (and I know I should be checking the return code of sscanf()...), the string contains text like "60.0" when asked for a frequency. float request = 50.0f; sscanf(string, "%f", &request); // having trouble since energia version 1.6.10E18 with floats... Under version energia_0101E0015, request becomes whatever float value is in the string (say 60.0), but under energia_1.6.10E18 request remains at the initialized value. Same with this snippet: sprintf(timecodeBuffer, "f# %04d ft %.03f %02d:%02d:%02d.%02d.%03d