psent
const struct psent *p1 = v1;
const struct psent *p2 = v2;
struct psent *psent;
psent = malloc(entsize * sizeof (struct psent));
if (psent == NULL) {
psent = (struct psent *)realloc((char *)psent,
entsize * sizeof (struct psent));
if (psent == NULL) {
if ((psent[nent].psinfo = malloc(sizeof (psinfo_t)))
*psent[nent].psinfo = info;
psent[nent].psargs = NULL;
if ((psent[nent].psargs = malloc(strlen(psargs)+1))
(void) strcpy(psent[nent].psargs, psargs);
psent[nent].found = found;
qsort((char *)psent, nent, sizeof (psent[0]), pscompare);
struct psent *pp = &psent[i];