How to convert int to string with Pebble SDK in C

Viewed 4149

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);

2 Answers
Related