Next: , Previous: , Up: cpg-bif   [Contents][Index]


12.3.96 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.