The C code:
Code:
#include <stdio.h>
#include <stdlib.h>
int main(){
float *mem, count = 0;
printf("This program coded to Free-Ram operation by Tomax\n\n");
printf("This operation may take aproximetly 10 seconds(related to your value)\n\n");
while(1){
printf("How many mb(max 200mb) do you want to free ram : ", count);
scanf("%f",&count);
if(count<201) break;
else printf("\nYou reached the limit please try again.(limit 200mb)\n");
}
mem =calloc((count*1024*1024), sizeof(char));
free(mem);
printf("Succeed!\nRam %.0fmb freed.\n",count);
return 0;
}
I will withhold comment.