Just got my Pebble, and I am playing around with the SDK. I am new to C, but I know Objective-C. So is there a way to create a formatted string like this?
int i = 1;
NSString *string = [NSString stringWithFormat:@"%i", i];
And I can't use sprintf, because there is NO malloc.
I basically want to display an int with text_layer_set_text(&countLayer, i);
Use
snprintf()to fill a string buffer with the value of the integer variable.