Query: ustrdup
OS: centos
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ustrdup(3alleg4) Allegro manual ustrdup(3alleg4)NAMEustrdup - Duplicates a string. Allegro game programming library.SYNOPSIS#include <allegro.h> char *ustrdup(const char *src)DESCRIPTIONThis 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 */ ...RETURN VALUEReturns 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.2 ustrdup(3alleg4)
Related Man Pages |
---|
ustrtok(3alleg4) - debian |
ustrtok(3alleg4) - centos |
exconfig(3alleg4) - suse |
exconfig(3alleg4) - php |
exconfig(3alleg4) - redhat |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
Set hard block limit for user using quota |
How to increment version inside a file? |
CentOS 6 ran out of space, need to reclaim it |
[TIP] Processing YAML files with yq |