From f9428e9b800458802a5bca1c45f7459b7fd91660 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Tue, 24 Mar 2020 08:40:13 -0400 Subject: [PATCH] main.cpp : Added object_t.to_string() test. --- src/cwtest/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cwtest/main.cpp b/src/cwtest/main.cpp index f599188..d87d526 100644 --- a/src/cwtest/main.cpp +++ b/src/cwtest/main.cpp @@ -173,6 +173,12 @@ void objectTest( cw::object_t* cfg, int argc, const char* argv[] ) o->getv("a",a,"b",b); printf("G: %i %i\n",a,b); + + const unsigned bufN = 128; + char buf[bufN]; + + unsigned i = o->to_string(buf,bufN); + printf("%i : %s\n",i, buf); o->free(); }