23 lines
446 B
C
23 lines
446 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void display_help( FILE *fp )
|
||
|
{
|
||
|
printf( "display_help T.B.I.\n" );
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
FILE *help_file;
|
||
|
char full_path[ _MAX_PATH ];
|
||
|
|
||
|
_searchenv( "watcomc.hlp", "PATH", full_path );
|
||
|
if( full_path[0] == '\0' ) {
|
||
|
printf( "Unable to find help file\n" );
|
||
|
} else {
|
||
|
help_file = fopen( full_path, "r" );
|
||
|
display_help( help_file );
|
||
|
fclose( help_file );
|
||
|
}
|
||
|
}
|