Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

ustrdup - Duplicates a string. Allegro game programming library.

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 */
             ...

Name

       ustrdup - Duplicates a string. Allegro game programming library.

Return Value

       Returns  the  newly  allocated string. This memory must be freed by the caller. Returns NULL if it cannot
       allocate space for the duplicated string.

See Also

_ustrdup(3alleg4), uconvert(3alleg4), ustrsize(3alleg4), ustrsizez(3alleg4), exconfig(3alleg4)

Allegro                                           version 4.4.3                                 ustrdup(3alleg4)

Synopsis

#include<allegro.h>char*ustrdup(constchar*src)

See Also