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

Function first_token

prime_hash.c:191–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static int first_token (str *source_string) {
192 size_t len;
193
194 if (source_string->s == NULL || source_string->len == 0) {
195 return 0;
196 }
197
198 while (source_string->len > 0 && isspace (*source_string->s)) {
199 ++source_string->s;
200 --source_string->len;
201 }
202 for (len = 0; len < source_string->len; ++len) {
203 if (isspace (source_string->s[len])) {
204 source_string->len = len;
205 break;
206 }
207 }
208 return 0;
209}

Callers 1

determine_call_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected