equal
deleted
inserted
replaced
19 int set_limit (int); |
19 int set_limit (int); |
20 |
20 |
21 int main (int argc, char **argv) |
21 int main (int argc, char **argv) |
22 { |
22 { |
23 int i, n = 0; |
23 int i, n = 0; |
|
24 |
24 long int *p; |
25 long int *p; |
|
26 |
25 long int *p_new; |
27 long int *p_new; |
26 char *args[] = { "/usr/bin/free", "-m", NULL }; |
28 char *args[] = { "/usr/bin/free", "-m", NULL }; |
27 int size = sizeof (*p); |
29 int size = sizeof (*p); |
|
30 |
28 int megs = DEFAULT_MEGS * 1024 * 1024; |
31 int megs = DEFAULT_MEGS * 1024 * 1024; |
29 |
32 |
30 if (argc == 2) |
33 if (argc == 2) |
31 megs = atoi (argv[1]) * 1024 * 1024; |
34 megs = atoi (argv[1]) * 1024 * 1024; |
32 |
35 |