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

Function String_MakeUInt32

src/String.c:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int String_MakeUInt32(cc_uint32 num, char* digits) {
168 int len = 0;
169 do {
170 digits[len] = '0' + (num % 10); num /= 10; len++;
171 } while (num > 0);
172 return len;
173}
174
175void String_AppendInt(cc_string* str, int num) {
176 if (num < 0) {

Callers 3

TextAtlas_AddIntFunction · 0.85
String_AppendUInt32Function · 0.85
String_AppendPaddedIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected