I am sure that the swap is not available. The manufacturer installs in this way :
Code:
<stdio.h>
Stdlib.h
<string.h>
int main (int argc, char * argv [])
(
void * myblock = NULL;
int count = 0;
char ch, * mem;
if (argv [1] == NULL) (
printf ("usage: blast <memmory space> \ n");
exit (0);
)
memReq int = 0;
memReq = strtol (argv [1], & mem, 10);
while (count <memReq)
(
myblock = (void *) malloc (megabytes);
if (! myblock) break;
memset (myblock, 1 megabyte);
printf ("Allocating% d Currently MB \ n", + + count);
)
do (
printf ("Hit 'y' to exit ... \ n");
scanf ("% c", & ch);
) While (ch == 'y');
free (myblock);
exit (0);
)
Bookmarks