dirname.c (df3f5d9dd51fa82a604ec559a75d3791a7b80ed5) | dirname.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 --- 41 unchanged lines hidden (view full) --- 50int 51main(argc, argv) 52 int argc; 53 char **argv; 54{ 55 char *p; 56 int ch; 57 | 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 --- 41 unchanged lines hidden (view full) --- 50int 51main(argc, argv) 52 int argc; 53 char **argv; 54{ 55 char *p; 56 int ch; 57 |
58 while ((ch = getopt(argc, argv, "")) != EOF) | 58 while ((ch = getopt(argc, argv, "")) != -1) |
59 switch(ch) { 60 case '?': 61 default: 62 usage(); 63 } 64 argc -= optind; 65 argv += optind; 66 --- 79 unchanged lines hidden --- | 59 switch(ch) { 60 case '?': 61 default: 62 usage(); 63 } 64 argc -= optind; 65 argv += optind; 66 --- 79 unchanged lines hidden --- |