basename.c (0da30e9aa76c5df66cd092f30b904824b0594ccc) basename.c (1c8af8787354e20c2b38cab5801698133ff8b403)
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 42 unchanged lines hidden (view full) ---

51int
52main(argc, argv)
53 int argc;
54 char **argv;
55{
56 char *p;
57 int ch;
58
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 42 unchanged lines hidden (view full) ---

51int
52main(argc, argv)
53 int argc;
54 char **argv;
55{
56 char *p;
57 int ch;
58
59 while ((ch = getopt(argc, argv, "")) != EOF)
59 while ((ch = getopt(argc, argv, "")) != -1)
60 switch(ch) {
61 case '?':
62 default:
63 usage();
64 }
65 argc -= optind;
66 argv += optind;
67

--- 72 unchanged lines hidden ---
60 switch(ch) {
61 case '?':
62 default:
63 usage();
64 }
65 argc -= optind;
66 argv += optind;
67

--- 72 unchanged lines hidden ---