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.

24 lines
387B

  1. #include <stdio.h>
  2. #include "utarray.h"
  3. int main()
  4. {
  5. UT_array *strs;
  6. const char *s, **p;
  7. utarray_new(strs,&ut_str_icd);
  8. s = "hello";
  9. utarray_push_back(strs, &s);
  10. s = "world";
  11. utarray_push_back(strs, &s);
  12. p = NULL;
  13. while ( (p=(const char**)utarray_next(strs,p)) != NULL ) {
  14. printf("%s\n",*p);
  15. }
  16. utarray_free(strs);
  17. return 0;
  18. }