=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/filename.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/less/filename.c 2003/04/13 18:26:25 1.8 --- src/usr.bin/less/filename.c 2003/04/14 14:33:57 1.9 *************** *** 302,307 **** --- 302,326 ---- return (NULL); } + #ifdef HELPFILE + /* + * Find out where the help file is. + */ + public char * + find_helpfile() + { + char *helpfile; + + if ((helpfile = getenv("LESSHELP")) != NULL && *helpfile != '\0') + return (save(helpfile)); + #if MSDOS_COMPILER || OS2 + return (homefile(HELPFILE)); + #else + return (save(HELPFILE)); + #endif + } + #endif + /* * Expand a string, substituting any "%" with the current filename, * and any "#" with the previous filename.