i'm wondering if a function exists that basically appends a string in a formatted style. example:
output being, "Whee, you have 50 apples and 100 bananas! that's great!"Code:int x = 50; int y = 100; char *blah = "that's great!"; char *text; text = "Whee, you have "; //and here's where the function would be... //i'm making up a name for it ;) buffer_printf (text,"%i apples and %i bananas! %s",x,y,blah);