ustrdup(3) - Linux man page
Name
ustrdup - Duplicates a string. Allegro game programming library.Synopsis
#include <allegro.h>char *ustrdup(const char *src)
Description
This functions copies the null-terminated string 'src' into a newly allocated area of memory, effectively duplicating it. Example:void manipulate_string(const char *input_string)
{
char *temp_buffer = ustrdup(input_string);
/* Now we can modify temp_buffer */
...
