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 12 static char sccsid[] = "@(#)equal.c 5.1 (Berkeley) 01/23/93"; 13 #endif /* not lint */ 14 15 #include "ed.h" 16 17 /* 18 * Print out what the line number of the address given is; default to 19 * end-of-buffer ($). 20 */ 21 22 void 23 equal(inputt, errnum) 24 25 FILE *inputt; 26 int *errnum; 27 28 { 29 if (End_default) 30 start = bottom; 31 else 32 start = End; 33 start_default = End_default = 0; 34 35 if (rol(inputt, errnum)) 36 return; 37 38 printf("%d\n", line_number(start)); 39 *errnum = 1; 40 } /* end-equal */ 41