pstring_strdup


Description:


public unowned string? pstring_strdup (string? string)

Create a new pooled string entry for strings.

A pooled string is a table where common strings are canonicalized. They are also reference counted and freed when no longer referenced.

The null and empty strings are special cased to constant values.

Unreference the returned string with pstring_free.

Parameters:

string

string to copy

Returns:

a canonicalized copy of string


Namespace: Camel
Package: camel-1.2