Deleted Added
full compact
strfile.c (142022) strfile.c (176407)
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 * Ken Arnold.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static const char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
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 * Ken Arnold.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static const char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/games/fortune/strfile/strfile.c 142022 2005-02-17 18:06:37Z ru $");
49__FBSDID("$FreeBSD: head/games/fortune/strfile/strfile.c 176407 2008-02-19 07:09:19Z ru $");
50
51# include <sys/param.h>
52# include <sys/endian.h>
53# include <stdio.h>
54# include <stdlib.h>
55# include <ctype.h>
56# include <string.h>
57# include <time.h>

--- 207 unchanged lines hidden (view full) ---

265 * This routine evaluates arguments from the command line
266 */
267void getargs(argc, argv)
268int argc;
269char **argv;
270{
271 int ch;
272
50
51# include <sys/param.h>
52# include <sys/endian.h>
53# include <stdio.h>
54# include <stdlib.h>
55# include <ctype.h>
56# include <string.h>
57# include <time.h>

--- 207 unchanged lines hidden (view full) ---

265 * This routine evaluates arguments from the command line
266 */
267void getargs(argc, argv)
268int argc;
269char **argv;
270{
271 int ch;
272
273 while ((ch = getopt(argc, argv, "Cc:iorsx")) != EOF)
273 while ((ch = getopt(argc, argv, "Cc:iorsx")) != -1)
274 switch(ch) {
275 case 'C': /* embedded comments */
276 Cflag++;
277 break;
278 case 'c': /* new delimiting char */
279 Delimch = *optarg;
280 if (!isascii(Delimch)) {
281 printf("bad delimiting character: '\\%o\n'",

--- 184 unchanged lines hidden ---
274 switch(ch) {
275 case 'C': /* embedded comments */
276 Cflag++;
277 break;
278 case 'c': /* new delimiting char */
279 Delimch = *optarg;
280 if (!isascii(Delimch)) {
281 printf("bad delimiting character: '\\%o\n'",

--- 184 unchanged lines hidden ---