Name: GRDTYP Purpose: decode graphics device type string Category: GRAPHICS File: pgplot.src Author: T.J. Pearson Use: see description below. Description: INTEGER FUNCTION GRDTYP (TEXT) GRPCKG (internal routine): determine graphics device type code from type name. It compares the argument with the table of known device types in common. Argument: TEXT (input, character): device type name, eg 'PRINTRONIX'; the name may be abbreviated to uniqueness. Returns: GRDTYP (integer): the device type code, in the range 1 to GRTMAX, zero if the type name is not recognised, or -1 if the type name is ambiguous. Updates: Oct 16, 1998: JPT automatically extracted from source.