# 2.11BSD#431 - /usr/src/usr.bin/uucp/lastpart.c

##### Functions

    lastpart          X

       1: #ifndef lint
       2: static char sccsid[] = "@(#)lastpart.c	5.4 (Berkeley) 6/20/85";
       3: #endif
       4:
       5: #include "uucp.h"
       6:
       7: /*LINTLIBRARY*/
       8:
       9: /*
      10:  *	find last part of file name
      11:  *
      12:  *	return - pointer to last part
      13:  */
      14:
      15: char *
      16: lastpart(file)
      17: register char *file;
      18: {
      19:     register char *c;
      20:
      21:     c = rindex(file, '/');
      22:     if (c++)
      23:         return c;
      24:     else
      25:         return file;
      26: }

#### Defined functions

lastpart defined in line 15; used 20 times

- in /usr/src/usr.bin/uucp/chkpth.c line 33, 211, 222
- in /usr/src/usr.bin/uucp/cntrl.c line 134, 470, 570, 619, 889, 898
- in /usr/src/usr.bin/uucp/cpmv.c line 21, 32
- in /usr/src/usr.bin/uucp/uux.c line 59, 317-319(2), 345-346(2), 370-371(2)
- in /usr/src/usr.bin/uucp/uuxqt.c line 75, 351

#### Defined variables

sccsid defined in line 2; never used

Last modified: 1987-02-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 618 |