Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
441B

  1. #include <stdio.h>
  2. #include "utstring.h"
  3. int main()
  4. {
  5. UT_string *s, *t;
  6. utstring_new(s);
  7. utstring_new(t);
  8. utstring_printf(s, "hello " );
  9. utstring_printf(s, "world " );
  10. utstring_printf(t, "hi " );
  11. utstring_printf(t, "there " );
  12. utstring_concat(s, t);
  13. printf("length: %u\n", (unsigned)utstring_len(s));
  14. printf("%s\n", utstring_body(s));
  15. utstring_free(s);
  16. utstring_free(t);
  17. return 0;
  18. }