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

Function inc_hexchar

modules/tm/callid.c:133–147  ·  view source on GitHub ↗

* Increment a character in hex, return * carry flag */

Source from the content-addressed store, hash-verified

131 * carry flag
132 */
133static inline int inc_hexchar(char* _c)
134{
135 if (*_c == '9') {
136 *_c = 'a';
137 return 0;
138 }
139
140 if (*_c == 'f') {
141 *_c = '0';
142 return 1;
143 }
144
145 (*_c)++;
146 return 0;
147}
148
149
150/*

Callers 1

generate_callidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected