Deleted Added
full compact
egetopt.c (200420) egetopt.c (200462)
1/*-
2 * Copyright (c) 1991 Keith Muller.
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

37
38#if 0
39#ifndef lint
40static char sccsid[] = "@(#)egetopt.c 8.1 (Berkeley) 6/6/93";
41#endif /* not lint */
42#endif
43
44#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991 Keith Muller.
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

37
38#if 0
39#ifndef lint
40static char sccsid[] = "@(#)egetopt.c 8.1 (Berkeley) 6/6/93";
41#endif /* not lint */
42#endif
43
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/usr.bin/pr/egetopt.c 200420 2009-12-11 23:35:38Z delphij $");
45__FBSDID("$FreeBSD: head/usr.bin/pr/egetopt.c 200462 2009-12-13 03:14:06Z delphij $");
46
47#include <ctype.h>
48#include <stdio.h>
46
47#include <ctype.h>
48#include <stdio.h>
49#include <stdlib.h>
49#include <string.h>
50
50#include <string.h>
51
52#include "extern.h"
53
51/*
52 * egetopt: get option letter from argument vector (an extended
53 * version of getopt).
54 *
55 * Non standard additions to the ostr specs are:
56 * 1) '?': immediate value following arg is optional (no white space
57 * between the arg and the value)
58 * 2) '#': +/- followed by a number (with an optional sign but

--- 157 unchanged lines hidden ---
54/*
55 * egetopt: get option letter from argument vector (an extended
56 * version of getopt).
57 *
58 * Non standard additions to the ostr specs are:
59 * 1) '?': immediate value following arg is optional (no white space
60 * between the arg and the value)
61 * 2) '#': +/- followed by a number (with an optional sign but

--- 157 unchanged lines hidden ---