String Instance Functions

These functions allow you to store one copy of a string, and use it throughout your program. More...

Functions

EAPI const char * ecore_string_instance (const char *string)
 Retrieves an instance of a string for use in an ecore program.
EAPI void ecore_string_release (const char *string)
 Notes that the given string has lost an instance.

Detailed Description

These functions allow you to store one copy of a string, and use it throughout your program.


Function Documentation

EAPI const char* ecore_string_instance ( const char *  string  ) 

Retrieves an instance of a string for use in an ecore program.

Parameters:
string The string to retrieve an instance of.
Returns:
A pointer to an instance of the string on success. NULL on failure.

EAPI void ecore_string_release ( const char *  string  ) 

Notes that the given string has lost an instance.

It will free the string if no other instances are left.

Parameters:
string The given string.