Lines Matching defs:str
78 * overwrites <str> to common prefix of <str> and <newstr>
79 * if <str> is equal to <newstr> returns <str>+strlen(<str>)+1
80 * otherwise returns <str>+strlen(<str>)
82 static char *overlaid(register char *str,register const char *newstr,int nocase)
85 while((c= *(unsigned char *)str) && ((d= *(unsigned char*)newstr++),charcmp(c,d,nocase)))
86 str++;
87 if(*str)
88 *str = 0;
90 str++;
91 return(str);