char * strdup(const char *str) { size_t len; char *copy; len = strlen(str) + 1; if ((copy = fast_malloc(len)) == NULL) return (NULL); memcpy(copy, str, len); return (copy); }
WEAK void *safe_malloc(size_t x) { return fast_malloc(x); }