This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/_searche.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 );
}
}