Lines Matching defs:last
45 "all characters up to and including the last \b/\b are removed. "
64 register char *first, *last;
66 for(first=last=pathname; *last; last++);
68 if(last>first)
69 while(*--last=='/' && last > first);
70 if(last==first && *last=='/')
74 if(*++last=='/') /* keep leading // */
75 last++;
79 for(first=last++;first>pathname && *first!='/';first--);
83 if(suffix && (n=strlen(suffix)) && n<(last-first))
85 if(memcmp(last-n,suffix,n)==0)
86 last -=n;
89 if(last>first)
90 sfwrite(outfile,first,last-first);