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

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

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


    return OK;
}
