SHARE
TWEET

Untitled

a guest Feb 17th, 2020 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Eina.h>
  2.  
  3. static Eina_Bool
  4. _remove_all(void *d, void *a)
  5. {
  6.    return EINA_FALSE;
  7. }
  8.  
  9. int main(int argc, char const *argv[])
  10. {
  11.   eina_init();
  12.   Eina_List *list = NULL;
  13.   Eina_Array *array = eina_array_new(1);
  14.  
  15.   for (int i = 0; i < 10000000; ++i)
  16.     {
  17.        //list = eina_list_append(list, 0x1);
  18.        //list = eina_list_remove(list, 0x1);
  19.       eina_array_push(array, 0x1);
  20.       eina_array_remove(array, _remove_all, NULL);
  21.       eina_array_clean(array);
  22.     }
  23.  
  24.  
  25.   eina_shutdown();
  26.   return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top