/* * Copyright 2022 Oleg Borodin */ #include #include #include #include #include #include void test01(void) { cstring_t str; cstring_init(&str); cstring_append(&str, "qwerty"); cstring_append(&str, "123456\n"); cstring_append(&str, "qwerty"); cstring_append(&str, "123456\n"); cstring_append(&str, "qwerty"); cstring_append(&str, "123456\n"); cstring_append(&str, "qwerty"); cstring_append(&str, "123456\n"); cstring_append(&str, "qwerty"); cstring_append(&str, "123456\n"); printf("%s\n", cstring_getref(&str)); cstring_destroy(&str); } int main(void) { test01(); return 0; }