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.

20 lines
373B

  1. #include <stdio.h>
  2. #include "utstring.h"
  3. int main()
  4. {
  5. UT_string *s;
  6. char binary[] = "\xff\xff";
  7. utstring_new(s);
  8. utstring_bincpy(s, binary, sizeof(binary));
  9. printf("length is %u\n", (unsigned)utstring_len(s));
  10. utstring_clear(s);
  11. utstring_printf(s,"number %d", 10);
  12. printf("%s\n", utstring_body(s));
  13. utstring_free(s);
  14. return 0;
  15. }