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

Function q_memchr

ut.h:332–341  ·  view source on GitHub ↗

faster memchr version */

Source from the content-addressed store, hash-verified

330
331/* faster memchr version */
332static inline char* q_memchr(char* p, int c, unsigned int size)
333{
334 char* end;
335
336 end=p+size;
337 for(;p<end;p++){
338 if (*p==(unsigned char)c) return p;
339 }
340 return NULL;
341}
342
343
344/* faster memrchr version */

Callers 15

pv_parse_sdp_line_nameFunction · 0.85
pv_parse_sdp_stream_nameFunction · 0.85
fixup_named_flagsFunction · 0.85
mk_net_cidrFunction · 0.85
tr_eval_uriFunction · 0.85
tr_eval_ipFunction · 0.85
db_url_escapeFunction · 0.85
parse_ip_netFunction · 0.85
mi_bl_get_ruleFunction · 0.85
parse_mi_cmd_bwlistFunction · 0.85
compare_dom_filtersFunction · 0.85
reg_stat_series_profileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected