dtm_set_class(3DTM)

NAME
dtm_set_class, dtm_compare_class - Low level class insertion and comparison macros.

SYNOPSIS
#include <dtm.h>

dtm_set_class(char *header, char *classtag)

dtm_compare_class(char *header, char *classtag)

DESCRIPTION
dtm_set_class inserts the message class constant classtag into the character string header. The classtag value must be a null-terminated character string that uniquely identifies the class being described. In general, this macro is reused by the various subclasses to ensure their uniqueness. The classtag value should be considered private data that is unique to that particular class.

dtm_compare_class returns a non-zero value if the character string header contains the character string classtag. The classtag should uniquely identify the class being described. This macro is reused by the various subclasses to help ensure the individuality of the classes.

For examples of how this macro is used in the creation of new subclasses, examine the header files of the classes supplied, e.g. sds.h.

SEE ALSO
DTM

BUGS
dtm_set_class has no way of determining if the header contains sufficient space to hold the entire classtag string. The results of attempting to store this information beyond the end of the allocated space are undefined.