Change-Id: Ia703877d3d9d997d43f276efc9437ac1f4e1f15b
Signed-off-by: Lukasz Pik <lu.pik@partner.samsung.com>
* @return @c 0 on success, otherwise a negative error value
* @retval #I18N_ERROR_NONE Successful
* @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter
+ * @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory
*/
int i18n_uchar_iter_create(i18n_uchar_iter_h *iter);
retv_if(iter == NULL, I18N_ERROR_INVALID_PARAMETER);
*iter = malloc(sizeof(UCharIterator));
+ retv_if(*iter == NULL, I18N_ERROR_OUT_OF_MEMORY);
return I18N_ERROR_NONE;
}