Move Autoconf's macro definitions into config.h.
[openvswitch] / lib / dynamic-string.c
index 68dd341912a4e1eba6ac550ee5e1052d5dd41f59..d12739b7551a751a7a6f42c60496adf5804d16f0 100644 (file)
@@ -31,6 +31,7 @@
  * derivatives without specific, written prior permission.
  */
 
+#include <config.h>
 #include "dynamic-string.h"
 #include <assert.h>
 #include <stdlib.h>
@@ -45,6 +46,12 @@ ds_init(struct ds *ds)
     ds->allocated = 0;
 }
 
+void
+ds_clear(struct ds *ds) 
+{
+    ds->length = 0;
+}
+
 void
 ds_reserve(struct ds *ds, size_t min_length)
 {