/[jscoverage]/trunk/util.c
ViewVC logotype

Diff of /trunk/util.c

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

revision 87 by siliconforks, Mon May 5 20:05:27 2008 UTC revision 91 by siliconforks, Wed May 7 03:59:56 2008 UTC
# Line 53  Line 53 
53    return result;    return result;
54  }  }
55    
56    void * xrealloc(void * p, size_t size) {
57      void * result = realloc(p, size);
58      if (result == NULL) {
59        fatal("out of memory");
60      }
61      return result;
62    }
63    
64  char * xstrdup(const char * s) {  char * xstrdup(const char * s) {
65    char * result = strdup(s);    char * result = strdup(s);
66    if (result == NULL) {    if (result == NULL) {

Legend:
Removed from v.87  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.24