Guest User

Untitled

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define SIZE (1 << 20)
  5.  
  6. int main(int argc, char *argv[]) {
  7. if (argc != 2) {
  8. return -1;
  9. }
  10.  
  11. int size = 0;
  12. sscanf(argv[1], "%d", &size);
  13.  
  14. for (int i = 0; i < size; i++) {
  15. long long *mem = malloc(SIZE);
  16.  
  17. for (int j = 0; j < SIZE >> 3; j++) {
  18. mem[j] = 55;
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment