/* 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	encode_UNIV_IA5String (pe, explicit, len, buffer, parm)
register PE     *pe;
int	explicit;
int	len;
char   *buffer;
struct type_UNIV_IA5String * parm;
{
    register struct qbuf *p0;

    p0 = parm ;
    if (p0 == ((struct qbuf *) 0)) {
        advise (NULLCP, "IA5String %s", PEPY_ERR_INIT_FAILED);
        return NOTOK;
    }
    if (((*pe) = qb2prim (p0, PE_CLASS_UNIV, 22)) == NULLPE) {
        advise (NULLCP, "IA5String: %s", PEPY_ERR_NOMEM);
        return NOTOK;
    }

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


    return OK;
}
