/* Copyright (C) 1993 by Thomas Glen Smith. All Rights Reserved. */
/* apltype APL2 V1.0.0 *************************************************
* Called by reshape. *
* Yields the "type" for apl variable rite, i.e. Y0R`Zrite. *
***********************************************************************/
#define INCLUDES APLCB
#include "includes.h"
Aplcb apltype(rite)
Aplcb rite;
{
Aplcopy; Apltypf; Errstop;
extern int aplerr;
Aplcb out=NULL;
void *v;
out = aplcopy(rite); /* get identical copy */
if (out) { /* make everything 0s or blanks */
out->aplflags |= APLTEMP;
v = apltypf(out->aplptr.aplchar,out->aplcount,
out->aplflags & (APLMASK + APLAPL));
}
return(errstop(0,NULL,rite,out));
}