fold.c (9b50d9027575220cb6dd09b3e62f03f511e908b8) | fold.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kevin Ruddy. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 46 unchanged lines hidden (view full) --- 55{ 56 extern int errno, optind; 57 extern char *optarg; 58 register int ch; 59 int width; 60 char *p; 61 62 width = -1; | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kevin Ruddy. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 46 unchanged lines hidden (view full) --- 55{ 56 extern int errno, optind; 57 extern char *optarg; 58 register int ch; 59 int width; 60 char *p; 61 62 width = -1; |
63 while ((ch = getopt(argc, argv, "0123456789w:")) != EOF) | 63 while ((ch = getopt(argc, argv, "0123456789w:")) != -1) |
64 switch (ch) { 65 case 'w': 66 if ((width = atoi(optarg)) <= 0) { 67 (void)fprintf(stderr, 68 "fold: illegal width value.\n"); 69 exit(1); 70 } 71 break; --- 81 unchanged lines hidden --- | 64 switch (ch) { 65 case 'w': 66 if ((width = atoi(optarg)) <= 0) { 67 (void)fprintf(stderr, 68 "fold: illegal width value.\n"); 69 exit(1); 70 } 71 break; --- 81 unchanged lines hidden --- |