2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
9 static char sccsid
[] = "$Id: ex_equal.c,v 8.4 1993/11/02 18:46:48 bostic Exp $ (Berkeley) $Date: 1993/11/02 18:46:48 $";
12 #include <sys/types.h>
18 * ex_equal -- :address =
19 * Print out the line number matching the specified address, or the
20 * last line number in the file if no address specified.
23 ex_equal(sp
, ep
, cmdp
)
30 if (F_ISSET(cmdp
, E_ADDRDEF
)) {
31 if (file_lline(sp
, ep
, &lno
))
33 (void)ex_printf(EXCOOKIE
, "%ld\n", lno
);
35 (void)ex_printf(EXCOOKIE
, "%ld\n", cmdp
->addr1
.lno
);