]> pd.if.org Git - zpackage/commitdiff
add library function to quote
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 15 Sep 2018 08:19:12 +0000 (08:19 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 17 Sep 2018 12:13:04 +0000 (12:13 +0000)
lib/quote.c

index 61d28c3d7f28566b0a63bd32c19c8644f2b4e952..a342cb2ac5cd3ef85929f522e198d09130388fb5 100644 (file)
@@ -1,4 +1,5 @@
 #include <stddef.h>
+#include <stdio.h>
 
 #include "sqlite3.h"
 
@@ -28,6 +29,7 @@ int zpm_quote(char *value, char *dest, size_t n) {
                dest[nch] = 0;
        }
 
+
        /* returns either the number of characters written or would
         * be written
         */