* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Rodney Ruddock of the University of Guelph.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)p.c 5.3 (Berkeley) %G%";
* Both the n and p code are here because they're almost identical.
* Print out the line. If it's n print the line number, tab, and then
if (start_default
&& End_default
)
start_default
= End_default
= 0;
strcpy(help_msg
, "buffer empty");
if (rol(inputt
, errnum
)) /* For "command-suffix pairs". */
l_ln
= line_number(start
);
/* Print out the lines. */
get_line(current
->handle
, current
->len
);
if (sigint_flag
&& (!sigspecial
))
if (flag
== 1) /* When 'n'. */
fwrite(text
, sizeof(char), current
->len
, stdout
);
current
= current
->below
;