MCPcopy Create free account
hub / github.com/apache/trafficserver / ink_fast_ltoa

Function ink_fast_ltoa

include/tscore/ink_string.h:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370inline int
371ink_fast_ltoa(int64_t val, char *buf, int buf_len)
372{
373 if ((val < 0) || (val > 99999)) {
374 int ret = snprintf(buf, buf_len, "%" PRId64 "", val);
375
376 return (ret >= 0 ? ret : 0);
377 }
378
379 return ink_small_itoa(static_cast<int>(val), buf, buf_len);
380}
381
382/// Check for prefix.
383/// @return @c true if @a lhs is a prefix (ignoring case) of @a rhs.

Callers 2

mime_format_int64Function · 0.85
test_ink_string.ccFile · 0.85

Calls 1

ink_small_itoaFunction · 0.85

Tested by

no test coverage detected