p_times
qsort(pt, nproc + 1, sizeof (struct p_times), compare_pctcpu);
if (reallocarr(&pt, nproc + 1, sizeof(struct p_times)) != 0) {
return (((const struct p_times *) a)->pt_pctcpu >
((const struct p_times *) b)->pt_pctcpu)? -1: 1;
struct p_times *pt;
qsort(pt, nproc + 1, sizeof (struct p_times), compare_pctcpu_noidle);
if (((const struct p_times *) a)->pt_kp == NULL)
if (((const struct p_times *) b)->pt_kp == NULL)
return (((const struct p_times *) a)->pt_pctcpu >
((const struct p_times *) b)->pt_pctcpu)? -1: 1;