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
373B

  1. #include <stdio.h>
  2. #include "utarray.h"
  3. int main()
  4. {
  5. UT_array *nums;
  6. int i, *p;
  7. utarray_new(nums,&ut_int_icd);
  8. for(i=0; i < 10; i++) {
  9. utarray_push_back(nums,&i);
  10. }
  11. for(p=(int*)utarray_front(nums);
  12. p!=NULL;
  13. p=(int*)utarray_next(nums,p)) {
  14. printf("%d\n",*p);
  15. }
  16. utarray_free(nums);
  17. return 0;
  18. }