![]() |
![]()
| ![]() |
![]()
NAMEm17n_object - SYNOPSISvoid* m17n_object (int size, void(*)(void *) freer) DESCRIPTION@brief Allocate a managed object. The m17n_object() function allocates a new managed object of @b size bytes and sets its reference count to 1. @b freer is the function that is used to free the object when the reference count becomes 0. If @b freer is NULL, the object is freed by the free() function. The heading bytes of the allocated object is occupied by #M17NObjectHead. That area is reserved for the m17n library and application programs should never touch it. @par Return value: This function returns a newly allocated object. @par Errors: This function never fails. Example:typedef struct { COPYRIGHTCopyright (C) 2001 Information-technology Promotion Agency (IPA)
|