Annotation of 41BSD/cmd/uucp/lastpart.c, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: /*******
                      4:  *     char *
                      5:  *     lastpart(file)  find last part of file name
                      6:  *     char *file;
                      7:  *
                      8:  *     return - pointer to last part
                      9:  */
                     10: 
                     11: char *
                     12: lastpart(file)
                     13: char *file;
                     14: {
                     15:        char *c;
                     16: 
                     17:        c = file + strlen(file);
                     18:        while (c >= file)
                     19:                if (*(--c) == '/')
                     20:                        break;
                     21:        return(++c);
                     22: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.