MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_AppendInt

Function String_AppendInt

src/String.c:175–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void String_AppendInt(cc_string* str, int num) {
176 if (num < 0) {
177 num = -num;
178 String_Append(str, '-');
179 }
180 String_AppendUInt32(str, (cc_uint32)num);
181}
182
183void String_AppendUInt32(cc_string* str, cc_uint32 num) {
184 char digits[STRING_INT_CHARS];

Callers 15

TouchCtrls_SensitivityFunction · 0.85
ParseHostNewFunction · 0.85
ParseHostFunction · 0.85
Int_DefaultFunction · 0.85
MenuOptionsScreen_IntGetFunction · 0.85
Options_SetIntFunction · 0.85
Window_DrawFramebufferFunction · 0.85
String_Format4Function · 0.85
ColoursScreen_SetFunction · 0.85
UpdatesScreen_FormatTimeFunction · 0.85
StartFromInfoFunction · 0.85
ParseHostFunction · 0.85

Calls 2

String_AppendFunction · 0.85
String_AppendUInt32Function · 0.85

Tested by

no test coverage detected