date and time created 83/02/12 19:06:51 by shannon
[unix-history] / usr / src / old / uudiff / trim.c
CommitLineData
3ffbb7fd
SL
1#ifndef lint
2static char sccsid[] = "@(#)trim.c 4.1 (Berkeley) %G%";
3#endif
4
5# if interdata
6# include "stdio.h"
7# endif
8main(argc,argv)
9 char *argv[];
10{
11char *nm, *p;
12p = nm = argv[1];
13while (*p) p++;
14while (*p != '/') p--;
15if (p==nm) p++;
16*p = 0;
17printf("%s\n", nm);
18exit(0);
19}