Changeset View
Changeset View
Standalone View
Standalone View
contrib/less/mkhelp.c
Show All 12 Lines | |||||
* from the less.hlp text file. | * from the less.hlp text file. | ||||
* help.c just contains a char array whose contents are | * help.c just contains a char array whose contents are | ||||
* the contents of less.hlp. | * the contents of less.hlp. | ||||
*/ | */ | ||||
#include <stdio.h> | #include <stdio.h> | ||||
int | int | ||||
main(argc, argv) | main(int argc, char *argv[]) | ||||
int argc; | |||||
char *argv[]; | |||||
{ | { | ||||
int ch; | int ch; | ||||
int prevch; | int prevch; | ||||
printf("/* This file was generated by mkhelp from less.hlp */\n"); | printf("/* This file was generated by mkhelp from less.hlp */\n"); | ||||
printf("#include \"less.h\"\n"); | printf("#include \"less.h\"\n"); | ||||
printf("constant char helpdata[] = {\n"); | printf("constant char helpdata[] = {\n"); | ||||
ch = 0; | ch = 0; | ||||
Show All 37 Lines |