cs_loc_alloc

Description

Allocates a CS_LOCALE structure.

Syntax

CS_RETCODE cs_loc_alloc(context, loc_pointer)
 
 CS_CONTENT       *context;
 CS_LOCALE           **loc_pointer;

Parameters

context

A pointer to a CS_CONTEXT structure.

loc_pointer

The address of a pointer variable. cs_loc_alloc sets *loc_pointer to the address of a newly allocated CS_LOCALE structure.

Returns

cs_loc_alloc returns:

Returns

Indicates

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

The most common reason for a cs_loc_alloc failure is a lack of adequate memory.

Usage

See also

cs_ctx_alloc, cs_loc_drop, cs_locale