/*
                                C A T A R G S . C
*/

#include "iccomp.h"

void catargs (arr)
    ESTRUC_
        *arr;
{
    register unsigned
        count;
    ESTRUC_
        *ep,
        e;

    if (!(count = arr->type))
        return;                             /* no arguments */

    ep = (ESTRUC_ *)arr->code;              /* local pointer to ESTRUC_s */

    e = ep[--count];                        /* e: code of last argument */

    while (count--)
        catcode(&e, &ep[count]);            /* catenate next argument(s) */

    free(arr->code);                         /* memory of array is free again */
    *arr = e;                               /* arguments changed to code */
}