/* automatically generated by pepy 8.0 #1 (big-screw), do not edit! */

#include "psap.h"

#define	advise	PY_advise

void	advise ();

/* Generated from module UNIV */

#include <stdio.h>
#include "UNIV-types.h"

#ifndef PEPYPARM
#define PEPYPARM char *
#endif /* PEPYPARM */
extern PEPYPARM NullParm;

/* ARGSUSED */

int	decode_UNIV_GraphicString (pe, explicit, len, buffer, parm)
register PE	pe;
int	explicit;
int    *len;
char  **buffer;
struct type_UNIV_GraphicString ** parm;
{
    register struct qbuf *p20;

#ifdef DEBUG
    (void) testdebug (pe, "UNIV.GraphicString");
#endif

    if (explicit
            && PE_ID (pe -> pe_class, pe -> pe_id)
                    != PE_ID (PE_CLASS_UNIV, 25)) {
        advise (NULLCP, "GraphicString %s%s/0x%x", PEPY_ERR_BAD_CLASS,
                pe_classlist[pe -> pe_class], pe -> pe_id);
        return NOTOK;
    }
    if ((p20 = prim2qb (pe)) == (struct qbuf *)0) {
        advise (NULLCP, "GraphicString %s%s", PEPY_ERR_BAD_OCTET,
                pe_error (pe -> pe_errno));
        return NOTOK;
    }
    (*parm)  = p20;

    return OK;
}
