rev.c (0da30e9aa76c5df66cd092f30b904824b0594ccc) | rev.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/*- 2 * Copyright (c) 1987, 1992, 1993 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 --- 48 unchanged lines hidden (view full) --- 57 int argc; 58 char *argv[]; 59{ 60 register char *filename, *p, *t; 61 FILE *fp; 62 size_t len; 63 int ch, rval; 64 | 1/*- 2 * Copyright (c) 1987, 1992, 1993 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 --- 48 unchanged lines hidden (view full) --- 57 int argc; 58 char *argv[]; 59{ 60 register char *filename, *p, *t; 61 FILE *fp; 62 size_t len; 63 int ch, rval; 64 |
65 while ((ch = getopt(argc, argv, "")) != EOF) | 65 while ((ch = getopt(argc, argv, "")) != -1) |
66 switch(ch) { 67 case '?': 68 default: 69 usage(); 70 } 71 72 argc -= optind; 73 argv += optind; --- 37 unchanged lines hidden --- | 66 switch(ch) { 67 case '?': 68 default: 69 usage(); 70 } 71 72 argc -= optind; 73 argv += optind; --- 37 unchanged lines hidden --- |