Deleted Added
full compact
wrterm.c (87701) wrterm.c (200419)
1/*-
2 * Copyright (c) 1991, 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

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

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35
1/*-
2 * Copyright (c) 1991, 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

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

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35
36__FBSDID("$FreeBSD: head/usr.bin/tset/wrterm.c 87701 2001-12-11 23:29:45Z markm $");
36__FBSDID("$FreeBSD: head/usr.bin/tset/wrterm.c 200419 2009-12-11 23:30:22Z delphij $");
37
38#ifndef lint
39static const char sccsid[] = "@(#)wrterm.c 8.1 (Berkeley) 6/9/93";
40#endif
41
42#include <sys/types.h>
43
44#include <ctype.h>
45#include <err.h>
46#include <stdio.h>
47#include <string.h>
48
49#include "extern.h"
50
51/*
52 * Output termcap entry to stdout, quoting characters that would give the
53 * shell problems and omitting empty fields.
54 */
55void
37
38#ifndef lint
39static const char sccsid[] = "@(#)wrterm.c 8.1 (Berkeley) 6/9/93";
40#endif
41
42#include <sys/types.h>
43
44#include <ctype.h>
45#include <err.h>
46#include <stdio.h>
47#include <string.h>
48
49#include "extern.h"
50
51/*
52 * Output termcap entry to stdout, quoting characters that would give the
53 * shell problems and omitting empty fields.
54 */
55void
56wrtermcap(bp)
57 char *bp;
56wrtermcap(char *bp)
58{
59 register int ch;
60 register char *p;
61 char *t, *sep;
62
63 /* Find the end of the terminal names. */
64 if ((t = index(bp, ':')) == NULL)
65 errx(1, "termcap names not colon terminated");

--- 54 unchanged lines hidden ---
57{
58 register int ch;
59 register char *p;
60 char *t, *sep;
61
62 /* Find the end of the terminal names. */
63 if ((t = index(bp, ':')) == NULL)
64 errx(1, "termcap names not colon terminated");

--- 54 unchanged lines hidden ---