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

Fügt einem String unter Verwendung eines Format-Strings eine Zahl hinzu.

Parameter:

string - Zielstring
format - Formatstring (STRING* oder char*), ähnlich dem Digits -Formatstring.

Rückgabewert:

string

Geschwindigkeit:

Mittel

Beispiel

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

Siehe auch:

str_printf,str_cpy, str_cat, str_for_num, Digits

► Aktuelle Version Online