jot.c (1591) | jot.c (13101) |
---|---|
1/*- 2 * Copyright (c) 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 --- 126 unchanged lines hidden (view full) --- 135 strcpy(format, *av + 2); 136 else if (!--ac) 137 error("Need context word after -w or -b", ""); 138 else 139 strcpy(format, *++av); 140 break; 141 case 's': 142 if ((*av)[2]) | 1/*- 2 * Copyright (c) 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 --- 126 unchanged lines hidden (view full) --- 135 strcpy(format, *av + 2); 136 else if (!--ac) 137 error("Need context word after -w or -b", ""); 138 else 139 strcpy(format, *++av); 140 break; 141 case 's': 142 if ((*av)[2]) |
143 strcpy(sepstring, *av + 2); | 143 sepstring = *av + 2; |
144 else if (!--ac) 145 error("Need string after -s", ""); 146 else | 144 else if (!--ac) 145 error("Need string after -s", ""); 146 else |
147 strcpy(sepstring, *++av); | 147 sepstring = *++av; |
148 break; 149 case 'p': 150 if ((*av)[2]) 151 prec = atoi(*av + 2); 152 else if (!--ac) 153 error("Need number after -p", ""); 154 else 155 prec = atoi(*++av); --- 238 unchanged lines hidden --- | 148 break; 149 case 'p': 150 if ((*av)[2]) 151 prec = atoi(*av + 2); 152 else if (!--ac) 153 error("Need number after -p", ""); 154 else 155 prec = atoi(*++av); --- 238 unchanged lines hidden --- |