ustrdup(3alleg4) netbsd man page | unix.com

Man Page: ustrdup

Operating Environment: netbsd

Section: 3alleg4

ustrdup(3alleg4)						  Allegro manual						  ustrdup(3alleg4)

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 */ ... 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.2 ustrdup(3alleg4)
Related Man Pages
ustrtok(3alleg4) - debian
ustrtok(3alleg4) - centos
exconfig(3alleg4) - centos
exconfig(3alleg4) - mojave
exconfig(3alleg4) - netbsd
Similar Topics in the Unix Linux Community
Memory Leaks
Vm versus physical linux server
Adding a List of Times
Grandpa returning to UNIX
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD