args.c (51326) | args.c (51335) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Keith Muller of the University of California, San Diego and Lance 7 * Visser of Convex Computer Corporation. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; 41#endif 42static const char rcsid[] = | 1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Keith Muller of the University of California, San Diego and Lance 7 * Visser of Convex Computer Corporation. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; 41#endif 42static const char rcsid[] = |
43 "$FreeBSD: head/bin/dd/args.c 51326 1999-09-16 05:12:59Z green $"; | 43 "$FreeBSD: head/bin/dd/args.c 51335 1999-09-16 19:50:59Z green $"; |
44#endif /* not lint */ 45 46#include <sys/types.h> 47 48#include <err.h> 49#include <errno.h> 50#include <limits.h> 51#include <stdlib.h> --- 152 unchanged lines hidden (view full) --- 204static void 205f_count(arg) 206 char *arg; 207{ 208 209 cpy_cnt = get_num(arg); 210 if (cpy_cnt < 0) 211 errx(1, "count cannot be negative"); | 44#endif /* not lint */ 45 46#include <sys/types.h> 47 48#include <err.h> 49#include <errno.h> 50#include <limits.h> 51#include <stdlib.h> --- 152 unchanged lines hidden (view full) --- 204static void 205f_count(arg) 206 char *arg; 207{ 208 209 cpy_cnt = get_num(arg); 210 if (cpy_cnt < 0) 211 errx(1, "count cannot be negative"); |
212 if (cpy_cnt == 0) 213 cpy_cnt = -1; |
|
212} 213 214static void 215f_files(arg) 216 char *arg; 217{ 218 219 files_cnt = get_num(arg); --- 208 unchanged lines hidden --- | 214} 215 216static void 217f_files(arg) 218 char *arg; 219{ 220 221 files_cnt = get_num(arg); --- 208 unchanged lines hidden --- |