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

Function findchr

modules/enum/enum.c:110–121  ·  view source on GitHub ↗

return the length of the string until c, if not found returns n */

Source from the content-addressed store, hash-verified

108
109/* return the length of the string until c, if not found returns n */
110static inline int findchr(char* p, int c, unsigned int size)
111{
112 int len=0;
113
114 for(;len<size;p++){
115 if (*p==(unsigned char)c) {
116 return len;
117 }
118 len++;
119 }
120 return len;
121}
122
123
124/* Parse NAPTR regexp field of the form !pattern!replacement! and return its

Callers 1

sip_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected