MCPcopy Create free account
hub / github.com/baidu/tera / IntegerToString

Function IntegerToString

src/common/base/string_number.cc:669–672  ·  view source on GitHub ↗

----------------------------------------------------- interface for int to string or buffer Make sure the buffer is big enough -----------------------------------------------------

Source from the content-addressed store, hash-verified

667// Make sure the buffer is big enough
668// -----------------------------------------------------
669char* IntegerToString(int i, char* buffer) {
670 *OutputIntegerAsString(i, buffer) = '\0';
671 return buffer;
672}
673
674char* IntegerToString(unsigned int i, char* buffer) {
675 *OutputIntegerAsString(i, buffer) = '\0';

Callers 2

NumberToStringFunction · 0.85
TESTFunction · 0.85

Calls 1

OutputIntegerAsStringFunction · 0.85

Tested by 1

TESTFunction · 0.68