mirror of
https://github.com/json-c/json-c.git
synced 2026-11-09 15:30:14 +08:00
Reformat the test sources. No functional change.
This commit is contained in:
1 parent
d1f237e28a
commit
c3068bfd09
8 files changed
+211
-204
No files matched your search
@@ -14,7 +14,7 @@ static void test_printbuf_memset_length(void);
|
||||
static void test_basic_printbuf_memset()
|
||||
{
|
||||
struct printbuf *pb;
|
||||
|
||||
|
||||
printf("%s: starting test\n", __func__);
|
||||
pb = printbuf_new();
|
||||
sprintbuf(pb, "blue:%d", 1);
|
||||
@@ -104,7 +104,7 @@ static void test_printbuf_memappend(int *before_resize)
|
||||
memset(data, 'X', *before_resize + 1);
|
||||
printbuf_memappend_fast(pb, data, *before_resize + 1);
|
||||
printf("Append to just after resize: %d, [%s]\n", printbuf_length(pb), pb->buf);
|
||||
|
||||
|
||||
free(data);
|
||||
|
||||
printbuf_free(pb);
|
||||
|
||||
Reference in new issue
Block a user