MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / bigint2str

Function bigint2str

ut.h:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319#define BIGINT2STR_MAX_LEN INT2STR_MAX_LEN
320static inline char* bigint2str(long long l, int* len)
321{
322 unsigned int buf;
323
324 buf = getstrbufindex();
325 *len = snprintf(int2str_buf[buf], INT2STR_MAX_LEN - 1, "%lld", l);
326 int2str_buf[buf][*len] = '\0';
327
328 return int2str_buf[buf];
329}
330
331/* faster memchr version */
332static inline char* q_memchr(char* p, int c, unsigned int size)

Callers 4

db_query_print_resultsFunction · 0.85
insert_in_cachedbFunction · 0.85
on_demand_loadFunction · 0.85

Calls 1

getstrbufindexFunction · 0.85

Tested by

no test coverage detected