home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
maj
/
4401
/
exc.arj
/
FGDOC
/
EXAMPLES
/
C
/
09-02.C
< prev
next >
Wrap
Text File
|
1994-01-24
|
451b
|
25 lines
#include <fastgraf.h>
#include <stdio.h>
#include <stdlib.h>
main()
{
int mode, status;
char header[128];
status = fg_pcxhead("CORAL.PCX",header);
if (status == -1)
{
printf("Can't open CORAL.PCX.\n");
exit(1);
}
else if (status == -2)
{
printf("CORAL.PCX is not a PCX file.\n");
exit(1);
}
mode = fg_pcxmode(header);
printf("Optimal display mode is %d.\n",mode);
}