Slice Tools
  • Home
  • SourceForge Page


  • libSlice
  • Home
  • Modules
  • Files
  • Examples
  • Additional Information


  • SourceForge.net Logo
     

    newmem.c File Reference


    Detailed Description

    newmem Implementation A slight modification of Paul Hardy's code from alnseq

    Definition in file newmem.c.

    Go to the source code of this file.

    Functions

    void * libSlice_newmem (int number, int size)
     Error Checking malloc.

    void * libSlice_newmem2 (int number, int size, char *file, int line)
     Error checking malloc with explicit filename and linenumber.


    Function Documentation

    void* libSlice_newmem2 int  number,
    int  size,
    char *  file,
    int  line
     

    Error checking malloc with explicit filename and linenumber.

    Parameters:
    number Number of blocks to allocate
    size Size of each block to allocate
    file Filename of allocating call
    line Line number of allocating call
    Returns:
    Block of new memory number*size bytes big
    Exceptions:
    Exits(-1) If it can't malloc memory

    Definition at line 50 of file newmem.c.