Reference

Table of Contents  ▸  List of Commands  ▸  User KaRo's CLI I/O functions  ▸  pink_input_test◀  pink_input_pnk    |    cimg2tiff  ▶

pink_input_test

Arguments:

Description:

Test file type of file_name for pnk (pink) and pnm (portable anymap) file type.

Routine returns the first character from the first non comment line in status. Only [PQesbnBNcCdDGS#] are allowed,
'P'=80 is returned for pgm files with type <> P2 (not ascii pgm),
'Q'=81 is returned for pgm files with type == P2.
[esbnBNcCdDGS] is returned for PINK list files where the second char is ' '.
'#'=35 is returned otherwise.