summaryrefslogtreecommitdiff
path: root/src/libdatastruct/genqdyn_free.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-12-29 14:16:27 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-12-29 14:16:27 +0000
commited40369c8610914085d568ec57701a035bf8dd29 (patch)
tree26425c589b590306fbba48140fabdd0abe4877bf /src/libdatastruct/genqdyn_free.c
parenta8e40d0287f05f6e444035431b1cc7b340fe8d79 (diff)
downloadskalibs-ed40369c8610914085d568ec57701a035bf8dd29.tar.xz
Add genqdyn
Diffstat (limited to 'src/libdatastruct/genqdyn_free.c')
-rw-r--r--src/libdatastruct/genqdyn_free.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libdatastruct/genqdyn_free.c b/src/libdatastruct/genqdyn_free.c
new file mode 100644
index 0000000..d2dd007
--- /dev/null
+++ b/src/libdatastruct/genqdyn_free.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <skalibs/genqdyn.h>
+
+void genqdyn_free (genqdyn *g)
+{
+ stralloc_free(&g->queue) ;
+ *g = genqdyn_zero ;
+}