Lines Matching refs:last
44 "characters in \astring\a, all characters up to and including the last "
71 register char *first, *last;
73 for(first=last=pathname; *last; last++);
75 if(last>first)
76 while(*--last=='/' && last > first);
77 if(last==first && *last=='/')
81 if(*++last=='/') /* keep leading // */
82 last++;
86 for(first=last++;first>pathname && *first!='/';first--);
90 if(suffix && (n=strlen(suffix)) && n<(last-first))
92 if(memcmp(last-n,suffix,n)==0)
93 last -=n;
96 if(last>first)
97 sfwrite(outfile,first,last-first);