/[svn]/hopm/trunk/src/memory.c
ViewVC logotype

Diff of /hopm/trunk/src/memory.c

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

revision 5915 by michael, Wed Apr 29 11:25:48 2015 UTC revision 5916 by michael, Tue May 5 18:45:20 2015 UTC
# Line 36  Line 36 
36   * Return:   * Return:
37   *    Pointer to allocated memory   *    Pointer to allocated memory
38   */   */
39    void *
40  void *xcalloc(size_t bytes)  xcalloc(size_t bytes)
41  {  {
42     void *ret = calloc(1, bytes);     void *ret = calloc(1, bytes);
43     assert(ret);     assert(ret);
# Line 45  void *xcalloc(size_t bytes) Line 45  void *xcalloc(size_t bytes)
45     return ret;     return ret;
46  }  }
47    
   
   
48  /*  xfree  /*  xfree
49   *   *
50   *  Free memory allocated with xcalloc   *  Free memory allocated with xcalloc
# Line 57  void *xcalloc(size_t bytes) Line 55  void *xcalloc(size_t bytes)
55   *  Return:   *  Return:
56   *     None   *     None
57   */   */
58    void
59  void xfree(void *ptr)  xfree(void *ptr)
60  {  {
61    free(ptr);    free(ptr);
62  }  }

Legend:
Removed from v.5915  
changed lines
  Added in v.5916

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28