| 107 | } |
| 108 | |
| 109 | char *xstrdup(const char *s) |
| 110 | { |
| 111 | char *p; |
| 112 | |
| 113 | p = strdup(s); |
| 114 | if (p) |
| 115 | return p; |
| 116 | fprintf(stderr, "Out of memory.\n"); |
| 117 | exit(1); |
| 118 | } |
| 119 | |
| 120 | char *xstrndup(const char *s, size_t n) |
| 121 | { |
no outgoing calls
no test coverage detected