| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflmem.h" size_t mem_size_ ( const void *client_ptr, /* Block of memory to free */ const char *filename, /* Name of source file making call */ size_t lineno /* Line number in calling source */ )
Returns the size in bytes of a memory block.
{ MEMHDR *ptr; if (client_ptr == NULL) /* Do nothing if address is null */ return 0; /* Check for valid block */ ptr = CLIENT_2_HDR (client_ptr); if (ptr-> tag != MEMTAG) mem_tag_err (ptr, filename, lineno); return (ptr-> size); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |