1*61470ee0Sagc /* $NetBSD: help.c,v 1.6 2003/10/13 14:34:25 agc Exp $ */
274b7d6e9Sagc
374b7d6e9Sagc /*
4*61470ee0Sagc * Copyright (c) 1988 Mark Nudelman
574b7d6e9Sagc * Copyright (c) 1988, 1993
674b7d6e9Sagc * The Regents of the University of California. All rights reserved.
774b7d6e9Sagc *
874b7d6e9Sagc * Redistribution and use in source and binary forms, with or without
974b7d6e9Sagc * modification, are permitted provided that the following conditions
1074b7d6e9Sagc * are met:
1174b7d6e9Sagc * 1. Redistributions of source code must retain the above copyright
1274b7d6e9Sagc * notice, this list of conditions and the following disclaimer.
1374b7d6e9Sagc * 2. Redistributions in binary form must reproduce the above copyright
1474b7d6e9Sagc * notice, this list of conditions and the following disclaimer in the
1574b7d6e9Sagc * documentation and/or other materials provided with the distribution.
1674b7d6e9Sagc * 3. Neither the name of the University nor the names of its contributors
1774b7d6e9Sagc * may be used to endorse or promote products derived from this software
1874b7d6e9Sagc * without specific prior written permission.
1974b7d6e9Sagc *
2074b7d6e9Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2174b7d6e9Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2274b7d6e9Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2374b7d6e9Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2474b7d6e9Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2574b7d6e9Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2674b7d6e9Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2774b7d6e9Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2874b7d6e9Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2974b7d6e9Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3074b7d6e9Sagc * SUCH DAMAGE.
3174b7d6e9Sagc */
323fe138c1Sperry
33e3fbe7d2Schristos #include <sys/cdefs.h>
34963d5659Scjs #ifndef lint
35e3fbe7d2Schristos #if 0
36963d5659Scjs static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 6/6/93";
37e3fbe7d2Schristos #else
38*61470ee0Sagc __RCSID("$NetBSD: help.c,v 1.6 2003/10/13 14:34:25 agc Exp $");
39e3fbe7d2Schristos #endif
40963d5659Scjs #endif /* not lint */
41963d5659Scjs
42963d5659Scjs #include <sys/param.h>
43e3fbe7d2Schristos #include <stdio.h>
44963d5659Scjs
45e3fbe7d2Schristos #include "less.h"
46e3fbe7d2Schristos #include "pathnames.h"
47e3fbe7d2Schristos #include "extern.h"
48e3fbe7d2Schristos
49e3fbe7d2Schristos void
help()50963d5659Scjs help()
51963d5659Scjs {
52963d5659Scjs char cmd[MAXPATHLEN + 20];
53963d5659Scjs
54cad152eeSitojun (void)snprintf(cmd, sizeof(cmd), "-more %s", _PATH_HELPFILE);
55963d5659Scjs lsystem(cmd);
56963d5659Scjs }
57