--- act_hash.c 2000/08/18 15:58:08 1.3
+++ act_hash.c 2000/08/20 13:57:53 1.4
@@ -134,6 +134,17 @@
int act_hash_size(act_hash_t *h, long *pb, long *pe)
{
insist(h != NULL, NULL);
+ insist(pb != NULL, NULL);
+ insist(pe != NULL, NULL);
return method(h, size)(h->h_ctx, h->h_data, pb, pe);
}
+/* return summary of current internal status */
+int act_hash_status(act_hash_t *h, char *ps, int ns)
+{
+ insist(h != NULL, NULL);
+ insist(ps != NULL, NULL);
+ insist(ns > 0, NULL);
+ return method(h, status)(h->h_ctx, h->h_data, ps, ns);
+}
+
|