
#include <stdio.h>
#include <stdlib.h>

main(argc, argv)

int argc;
char **argv;

{
  char *buf;
  int size;

  if (argc != 2)
    errx(1, "usage: %s #mb", *argv);

  size = atoi(argv[1]);
  if (size < 1)
    errx(1, "size %d out of range", size);

  size = size * (1024*1024);

  buf = malloc(size);
  if (buf == NULL)
    err(1, "malloc");
  bzero(buf, size);

  printf("ok\n");
  (void) getchar();
}
