Lines Matching refs:from
20 * may be used to endorse or promote products derived from this software
65 const char *from, const char *to)
70 if(strlen(from) < strlen(to)){
72 str = from;
73 from = to;
77 if(strcmp(from + strlen(from) - strlen(to), to) == 0){
78 p = from;
105 }else if(strncmp(from, to, strlen(to)) == 0){
106 p = from + strlen(from);
108 while(p >= from && *p != '/') p--;
109 if(p == from)
112 if(strncmp(to, from, p - from) == 0)
122 tmp->realm = malloc(p - from + 1);
130 memcpy(tmp->realm, from, p - from);
131 tmp->realm[p - from] = '\0';