| 197 | } |
| 198 | |
| 199 | static char *string_copy(const char *value) { |
| 200 | if (!value) { |
| 201 | return NULL; |
| 202 | } |
| 203 | size_t length = strlen(value); |
| 204 | char *copy = malloc(length + 1); |
| 205 | if (copy) { |
| 206 | memcpy(copy, value, length + 1); |
| 207 | } |
| 208 | return copy; |
| 209 | } |
| 210 | |
| 211 | static char *string_format(const char *format, ...) { |
| 212 | va_list args; |
no outgoing calls
no test coverage detected