125 #define HELPENV "HELPDIR"
179 static int FirstCall =
TRUE;
183 static FILE *fp =
NULL;
185 if(!strcmp(HelpFile,
"CLOSE"))
200 blScreen(
" Error==> Unable to open help file.\n");
201 sprintf(FileBuff,
" The %s environment variable \
202 or assign has not been set.\n",
HELPENV);
214 if(
blMatch(
string,
"HELP",&nletters) ||
string[0] ==
'?')
219 while(fgets(FileBuff,
BUFFLEN, fp))
222 if(FileBuff[0] ==
'#')
224 if(buffpos + strlen(FileBuff) > 58)
226 buffer[buffpos] =
'\0';
233 for(i=1; i<strlen(FileBuff); i++)
235 buffer[buffpos++] = FileBuff[i];
237 buffer[buffpos++] =
' ';
244 buffer[buffpos] =
'\0';
256 while(fgets(FileBuff,
BUFFLEN, fp))
259 if(FileBuff[0] ==
'#')
263 if(
blMatch(
string,ptr,&nletters))
266 while(fgets(FileBuff,
BUFFLEN, fp))
269 if(FileBuff[0] ==
'#')
break;
325 strcpy(buffer,
string);
326 for(i=strlen(buffer)-1;buffer[i]==
' '||buffer[i]==
'\t';i--);
329 if((str=strchr(buffer,
' '))!=
NULL)
void blScreen(char *string)
Header for window/normal interface routines.
Include file for the command parser.
void blGetKybdString(char *string, int maxlen)
void blDoHelp(char *string, char *HelpFile)
FILE * blOpenFile(char *filename, char *envvar, char *mode, BOOL *noenv)
int blMatch(char *comstring, char *string2, int *nletters)
void blHelp(char *string, char *HelpFile)
void blPrompt(char *string)
Include file for help functions.
Header file for general purpose routines.