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

Function q_memrchr

ut.h:345–354  ·  view source on GitHub ↗

faster memrchr version */

Source from the content-addressed store, hash-verified

343
344/* faster memrchr version */
345static inline char* q_memrchr(char* p, int c, unsigned int size)
346{
347 char* cursor;
348
349 cursor=p+size-1;
350 for(;cursor>=p;cursor--){
351 if (*cursor==(unsigned char)c) return cursor;
352 }
353 return NULL;
354}
355
356
357inline static int reverse_hex2int( char *c, int len, unsigned int *r)

Callers 7

parse_domain_addressFunction · 0.85
parse_siptrace_uriFunction · 0.85
add_rtpproxy_socksFunction · 0.85
w_t_new_requestFunction · 0.85
pv_parse_branch_indexFunction · 0.85
parse_cachedb_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected