PALcompareClass(3DTM)

NAME
PALsetClass, PALcompareClass - Palette class labeling and scanning macros.

SYNOPSIS
#include <ris.h>

PALsetClass(char *header)

PALcompareClass(char *header)

DESCRIPTION
PALsetClass inserts the message class constant PALclass into the character string header indicating that the data to follow should be considered a palette. The PALclass constant is declared in the file ris.h, and though it is accessible at all times, it is recommended that the macro PALsetClass be used to correctly insert this message type tag into the header.

PALcompareClass returns a non-zero value if the character string header contains the PALclass constant. Though the constant PALclass is accessible at all times, users should use the macro PALcompareClass to determine whether or not a header indicates palette data.

SEE ALSO
DTM, PALclass

BUGS
PALsetClass has no way of determining if the header contains sufficient space to hold the tag PALclass. The results of attempting to store this information beyond the end of the allocated space are undefined.