|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)trim.c 4.1 (Berkeley) 1/1/83"; ! 3: #endif ! 4: ! 5: # if interdata ! 6: # include "stdio.h" ! 7: # endif ! 8: main(argc,argv) ! 9: char *argv[]; ! 10: { ! 11: char *nm, *p; ! 12: p = nm = argv[1]; ! 13: while (*p) p++; ! 14: while (*p != '/') p--; ! 15: if (p==nm) p++; ! 16: *p = 0; ! 17: printf("%s\n", nm); ! 18: exit(0); ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.