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

 

mem_size_

#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    */
)

Synopsis

Returns the size in bytes of a memory block.

Source Code - (sflmem.c)

{
    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);
}

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