32 *s =
tmalloc(
sizeof(*t) * (strlen(t) + 1));
54 *s =
tmalloc(
sizeof(*t) * (n + 1));
void * tmalloc(uint64_t size_of_block)
Allocates a memory block of the specified size with zero initialization.
char * cpn_str(char **s, char *t, long n)
Copies a specified number of characters from a string.
char * cp_str(char **s, char *t)
Copies a string, allocating memory for storage.
char * strcpy_ss(char *dest, const char *src)
Safely copies a string, handling memory overlap.