/[imapfilter]/imapfilter/memory.c
ViewVC logotype

Diff of /imapfilter/memory.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by lefcha, Sat Nov 10 15:34:20 2001 UTC revision 1.5 by lefcha, Mon Jan 14 18:14:33 2002 UTC
# Line 38  void *xrealloc(void *ptr, size_t size) Line 38  void *xrealloc(void *ptr, size_t size)
38    
39    
40  /*  /*
41     * A free() that dies if fed with NULL pointer.
42     */
43    void xfree(void *ptr)
44    {
45        if (!ptr)
46            fatal(ERROR_MEMORY_ALLOCATION,
47                  "imapfilter: NULL pointer given as argument");
48        free(ptr);
49    }
50    
51    
52    /*
53   * A strdup() that checks the results and dies in case of error.   * A strdup() that checks the results and dies in case of error.
54   */   */
55  char *xstrdup(const char *s)  char *xstrdup(const char *s)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26