| 163 | } |
| 164 | |
| 165 | void * |
| 166 | xrealloc (void *ptr, size_t size) |
| 167 | { |
| 168 | void *res; |
| 169 | |
| 170 | assert (size != 0); |
| 171 | |
| 172 | res = realloc (ptr, size); |
| 173 | |
| 174 | if (res == NULL) |
| 175 | die_oom (); |
| 176 | return res; |
| 177 | } |
| 178 | |
| 179 | char * |
| 180 | xstrdup (const char *str) |
no test coverage detected