135209Sbostic /* 235209Sbostic * Copyright (c) 1988 Mark Nudleman 335209Sbostic * Copyright (c) 1988 Regents of the University of California. 435209Sbostic * All rights reserved. 535209Sbostic * 635209Sbostic * Redistribution and use in source and binary forms are permitted 735209Sbostic * provided that the above copyright notice and this paragraph are 835209Sbostic * duplicated in all such forms and that any documentation, 935209Sbostic * advertising materials, and other materials related to such 1035209Sbostic * distribution and use acknowledge that the software was developed 1135283Sbostic * by Mark Nudleman and the University of California, Berkeley. The 1235283Sbostic * name of Mark Nudleman or the 1335209Sbostic * University may not be used to endorse or promote products derived 1435209Sbostic * from this software without specific prior written permission. 1535209Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1635209Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1735209Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1835209Sbostic */ 1935209Sbostic 2035209Sbostic #ifndef lint 21*36251Sbostic static char sccsid[] = "@(#)help.c 5.5 (Berkeley) 11/22/88"; 2235209Sbostic #endif /* not lint */ 2335209Sbostic 24*36251Sbostic #include <sys/param.h> 25*36251Sbostic #include <less.h> 2635209Sbostic 27*36251Sbostic #define HELPFILE "/usr/lib/more.help" 2835209Sbostic help() 2935209Sbostic { 30*36251Sbostic char cmd[MAXPATHLEN + 20]; 3135209Sbostic 32*36251Sbostic (void)sprintf(cmd, "-more %s", HELPFILE); 3335209Sbostic lsystem(cmd); 3435209Sbostic } 35