str_cat_num (STRING* string, STRING* format, var)

Adds a number to a string, using a format string.

Parameters:

string - target string pointer.
format - format string (STRING* or char*) , similar to the Digits format string.

Returns:

string

Speed:

Medium

Example:

STRING* sResolution = "1024 x 768";
..
str_cpy(sResolution,""); // clear the string
str_cat_num(sResolution,"%.0f x ",video_width);
str_cat_num(sResolution,"%.0f",video_height);

See also:

str_printf, str_cpy, str_cat, str_for_num, Digits

► latest version online