fork(1) download
  1. #include <stdlib.h>
  2.  
  3. int
  4. comp(const void * x, const void * y)
  5. {
  6. return *(int*)x - *(int*) y;
  7. }
  8.  
  9. #define SIZE 1000000
  10.  
  11. int
  12. main()
  13. {
  14. int arr[SIZE];
  15. int count = 10;
  16. while(count--)
  17. {
  18. qsort(arr, SIZE, sizeof(int), comp);
  19. }
  20. }
Success #stdin #stdout 1.15s 6212KB
stdin
Standard input is empty
stdout
Standard output is empty