Lines Matching defs:last
37 "the last component from \astring\a.]"
45 "Otherwise, all characters following the last \b/\b are removed. "
68 register const char *last;
70 for(last=pathname; *last; last++);
72 while(last>pathname && *--last=='/');
74 for(;last>pathname && *last!='/';last--);
75 if(last==pathname)
79 last = pathname = ".";
84 for(;*last=='/' && last > pathname; last--);
87 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/')
89 while(pathname[2]=='/' && pathname<last)
91 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/' && *astconf("PATH_LEADING_SLASHES",NiL,NiL)!='1')
94 sfwrite(outfile,pathname,last+1-pathname);