Advertisement
Falexom

Untitled

Mar 10th, 2022
805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <stdlib.h>
  4.  
  5.  
  6. int main()
  7. {
  8.   long page = sysconf(_SC_PAGESIZE);
  9.  
  10.   while(1)
  11.   {
  12.     char *meme;
  13.     meme = (char*)calloc(sizeof(char), page);
  14.  
  15.     if (meme == 0 )
  16.     {
  17.       printf("Not enough memory!");
  18.     }
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement