# include "basic.h"

int memory (int argc, char **argv) {
  
# ifdef MEMMAP
  struct mallinfo minfo;

  minfo = mallinfo ();

  fprintf (stderr, " arena: %d\n", minfo.arena);      /* total space in arena */
  fprintf (stderr, " ordblks: %d\n", minfo.ordblks);    /* number of ordinary blocks */
  fprintf (stderr, " smblks: %d\n", minfo.smblks);     /* number of small blocks */
  fprintf (stderr, " hblkhd: %d\n", minfo.hblkhd);     /* space in holding block headers */
  fprintf (stderr, " hblks: %d\n", minfo.hblks);      /* number of holding blocks */
  fprintf (stderr, " usmblks: %d\n", minfo.usmblks);    /* space in small blocks in use */
  fprintf (stderr, " fsmblks: %d\n", minfo.fsmblks);    /* space in free small blocks */
  fprintf (stderr, " uordblks: %d\n", minfo.uordblks);   /* space in ordinary blocks in use */
  fprintf (stderr, " fordblks: %d\n", minfo.fordblks);   /* space in free ordinary blocks */
  fprintf (stderr, " keepcost: %d\n", minfo.keepcost);   /* space penalty if keep option is used */
# endif

  return (TRUE);
}
