for (i=0; i<lh->num_nodes; i++) { for (n=lh->b[i],num=0; n != NULL; n=n->next) num++; fprintf(out,"node %6u -> %3u\n",i,num); }
bp=BIO_new(BIO_s_file()); if (bp == NULL) goto end; BIO_set_fp(bp,fp,BIO_NOCLOSE); lh_node_stats_bio(lh,bp); BIO_free(bp); end:;
void lh_node_stats(LHASH *lh, FILE *out)	{	LHASH_NODE *n;	unsigned int i,num;	for (i=0; i<lh->num_nodes; i++)		{		for (n=lh->b[i],num=0; n != NULL; n=n->next)			num++;		fprintf(out,"node %6u -> %3u\n",i,num);		}	}