paste.c (9b50d9027575220cb6dd09b3e62f03f511e908b8) | paste.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/* 2 * Copyright (c) 1989, 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 * Adam S. Moskowitz of Menlo Consulting. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 48 unchanged lines hidden (view full) --- 57 int argc; 58 char **argv; 59{ 60 extern char *optarg; 61 extern int optind; 62 int ch, seq; 63 64 seq = 0; | 1/* 2 * Copyright (c) 1989, 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 * Adam S. Moskowitz of Menlo Consulting. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 48 unchanged lines hidden (view full) --- 57 int argc; 58 char **argv; 59{ 60 extern char *optarg; 61 extern int optind; 62 int ch, seq; 63 64 seq = 0; |
65 while ((ch = getopt(argc, argv, "d:s")) != EOF) | 65 while ((ch = getopt(argc, argv, "d:s")) != -1) |
66 switch(ch) { 67 case 'd': 68 delimcnt = tr(delim = optarg); 69 break; 70 case 's': 71 seq = 1; 72 break; 73 case '?': --- 178 unchanged lines hidden --- | 66 switch(ch) { 67 case 'd': 68 delimcnt = tr(delim = optarg); 69 break; 70 case 's': 71 seq = 1; 72 break; 73 case '?': --- 178 unchanged lines hidden --- |