add in a symlink for /etc/termcap
[unix-history] / usr / src / contrib / ed / a.c
CommitLineData
a5458cba
KB
1/*-
2 * Copyright (c) 1992 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rodney Ruddock of the University of Guelph.
7 *
8 * %sccs.include.redist.c%
9 */
10
11#ifndef lint
12static char sccsid[] = "@(#)a.c 5.1 (Berkeley) %G%";
13#endif /* not lint */
14
15#include "ed.h"
16
17/*
18 * This sets things up for the central input routine to place the text
19 * at the proper location for an append.
20 */
21
22void
23a(inputt, errnum)
24
25FILE *inputt;
26int *errnum;
27
28{
29 if (rol(inputt, errnum))
30 return;
31
32 if (g_flag == 0)
33 u_clr_stk();
34 if (sigint_flag)
35 SIGINT_ACTION;
36 add_flag = 1;
37 input_lines(inputt, errnum);
38 add_flag = 0;
39} /* end-a */