[Lldb-commits] [PATCH] D20567: Avoid using stdio in TestVirtual
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue May 24 10:39:23 PDT 2016
clayborg added a comment.
I would just make a large buffer and use snprintf:
char buffer[4096];
char *p = buffer;
char *end = p + sizeof(buffer);
p += snprintf(p, end - p, "a_as_A->a() = '%s'\n", a_as_A->a());
p += snprintf(p, end - p, "a_as_A->b() = '%s'\n", a_as_A->b());
http://reviews.llvm.org/D20567
More information about the lldb-commits
mailing list