This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main( int argc, char *argv[] ) { | |
// Check input arguments. | |
if(argc<=1) { | |
printf("Please provide the maximum number of GB to allocate, e.g.: ./memtest 5"); | |
exit(1); | |
} |