string pretty-print improved
string got plain old C output format to avoid confusion e.g. "true" string with CBOR true value
Signed-off-by: phirsov <41143811+phirsov@users.noreply.github.com>
diff --git a/examples/simplereader.c b/examples/simplereader.c
index 83edd71..83db578 100644
--- a/examples/simplereader.c
+++ b/examples/simplereader.c
@@ -87,7 +87,7 @@
err = cbor_value_dup_text_string(it, &buf, &n, it);
if (err)
return err; // parse error
- puts(buf);
+ printf("\"%s\"\n", buf);
free(buf);
continue;
}