/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

#include <descrip.h>

void print_class(struct dsc$descriptor *s)
{
    switch(s->dsc$b_class) {
        case DSC$K_CLASS_S:
            printf("Class S\n");
            break;
        case DSC$K_CLASS_VS:
            printf("Class VS\n");
            break;
        case DSC$K_CLASS_D:
            printf("Class D\n");
            break;
        default:
            printf("Unknown class\n");
            break;
    }
}
