43
43
const char orig[6]= {0x00, 0x01, 0x02, 0x03, 0x04, 0x05};
46
ssize_t out_len= drizzle_escape_string(out, sizeof(out), orig, 6);
46
ssize_t out_len= drizzle_safe_escape_string(out, sizeof(out), orig, 6);
48
48
BOOST_REQUIRE_EQUAL(7, out_len);
49
49
BOOST_REQUIRE_EQUAL("\\0\1\2\3\4\5", out);