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

Function mc_ndigits

modules/compression/compression.c:1014–1024  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

1012 *
1013 */
1014static inline unsigned int mc_ndigits(int x)
1015{
1016 unsigned int n = 0;
1017
1018 while (x >= 10) {
1019 x /= 10;
1020 n++;
1021 }
1022
1023 return n + 1;
1024}
1025
1026/*
1027 * Compression function

Callers 2

mc_compact_cbFunction · 0.85
mc_compress_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected