]> granicus.if.org Git - graphviz/commitdiff
expand on vmclear description
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Jul 2020 19:11:11 +0000 (12:11 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jul 2020 18:54:37 +0000 (11:54 -0700)
lib/vmalloc/vmclear.c

index d512cebbd37cb51f2ad114ae83caa3560e37982e..44a31e65044a10902b49447ecd7c85412a81ae1d 100644 (file)
 #include "vmalloc.h"
 #include <stdlib.h>
 
-/*     Clear out all allocated space.
-**
-**     Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
-*/
+/** Clear out all allocated space.
+ *
+ * Note that this leaves the allocation region itself usable, but just frees all
+ * previous allocations made within this region.
+ *
+ * @param vm Vmalloc to operate on
+ * @returns 0 on success
+ */
 int vmclear(Vmalloc_t *vm) {
   size_t i;