4 * Copyright (c) 1992, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1992, 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
15 static const char sccsid
[] = "Id: ex_mark.c,v 10.9 2001/06/25 15:19:17 skimo Exp (Berkeley) Date: 2001/06/25 15:19:17";
18 #include <sys/types.h>
19 #include <sys/queue.h>
21 #include <bitstring.h>
25 #include "../common/common.h"
28 * ex_mark -- :mark char
33 * PUBLIC: int ex_mark __P((SCR *, EXCMD *));
36 ex_mark(SCR
*sp
, EXCMD
*cmdp
)
40 if (cmdp
->argv
[0]->len
!= 1) {
41 msgq(sp
, M_ERR
, "136|Mark names must be a single character");
44 return (mark_set(sp
, cmdp
->argv
[0]->bp
[0], &cmdp
->addr1
, 1));