| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

mem_display

#include "sflmem.h"
void
mem_display (
    FILE *fp                            /*  File to dump display to          */
)

Synopsis

Displays the contents of the memory allocation list.

Source Code - (sflmem.c)

{
    MEMTRN
        *trn;

    fprintf (fp, "Index   Size  File(Line) - total size %lu\n", mem_total);
    mem_display_list ((MEMHDR *) &mem_list.memhdr, fp);

    trn = tr_list.next;
    while (trn != (MEMTRN *) &tr_list)
      {
        fprintf (fp, "* Transaction %s (%ld)",
                 trn-> file? trn-> file: "<Unknown>", (long) trn-> line);
        fprintf (fp, "\n");
        mem_display_list ((MEMHDR *) &trn-> memhdr, fp);

        trn = trn-> next;
      }
    fflush (fp);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation