Next: cpg-ref-SP_string_from_atom, Previous: cpg-ref-SP_signal, Up: cpg-bif [Contents][Index]
SP_strdup()
#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.
The given string.
The pointer, if allocation was successful, otherwise NULL
.