12.3.97 SP_strdup()

Synopsis

#include <sicstus/sicstus.h>

void *
SP_strdup(const char *str);

Allocates a string, which is a duplicates of the given string. The memory for the new string is managed by Prolog.

Arguments

str

The given string.

Return Value

The pointer, if allocation was successful, otherwise NULL.

See Also

OS Memory Management.


Send feedback on this subject.