rework ARGS structures as part of ex parser rework
[nvi.git] / ex / ex_source.c
blob2e476818703b403e5b557fa19d6a28500e76bf7a
1 /*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
6 */
8 #ifndef lint
9 static char sccsid[] = "$Id: ex_source.c,v 8.2 1993/08/16 12:49:47 bostic Exp $ (Berkeley) $Date: 1993/08/16 12:49:47 $";
10 #endif /* not lint */
12 #include <sys/types.h>
14 #include "vi.h"
15 #include "excmd.h"
18 * ex_source -- :source file
19 * Execute ex commands from a file.
21 int
22 ex_source(sp, ep, cmdp)
23 SCR *sp;
24 EXF *ep;
25 EXCMDARG *cmdp;
27 return (ex_cfile(sp, ep, (char *)cmdp->argv[0]));