/[gmemo]/gmemo/src/gmemo.c
ViewVC logotype

Diff of /gmemo/src/gmemo.c

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

revision 1.2 by TwinSun, Mon Jun 2 15:14:23 2003 UTC revision 1.3 by TwinSun, Tue Jun 3 09:38:10 2003 UTC
# Line 165  gchar           feast[12][31][128]; Line 165  gchar           feast[12][31][128];
165    
166    
167  /*  /*
168     * xmalloc: an malloc interface
169     */
170    void *xmalloc(size_t size) {
171    
172      void *tmp=malloc(size);
173    
174      if(tmp == NULL)
175        {
176    
177          GMEMO_ERROR("gmemo: Virtual memory exhausted\n");
178          gmemo_exit(EXIT_FAILURE);
179    
180        }
181    
182      return tmp;
183    
184    }
185    
186    /*
187   * gmemo_init: init gmemo with default values and open log file   * gmemo_init: init gmemo with default values and open log file
188   */   */
189    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26