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

Function String_AppendUInt32

src/String.c:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void String_AppendUInt32(cc_string* str, cc_uint32 num) {
184 char digits[STRING_INT_CHARS];
185 int i, count = String_MakeUInt32(num, digits);
186
187 for (i = count - 1; i >= 0; i--) {
188 String_Append(str, digits[i]);
189 }
190}
191
192void String_AppendPaddedInt(cc_string* str, int num, int minDigits) {
193 char digits[STRING_INT_CHARS];

Callers 3

HashUrlFunction · 0.85
String_AppendIntFunction · 0.85
String_AppendFloatFunction · 0.85

Calls 2

String_MakeUInt32Function · 0.85
String_AppendFunction · 0.85

Tested by

no test coverage detected