Change-Id: I946f281c2f91f03ba26bb8994c1284b53cab89f1
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_formattable_get_array(i18n_formattable_h formattable, i18n_formattable_h **array, int32_t *count);
const Formattable *f_array = ((Formattable *) formattable)->getArray(*count, status);
*array = (i18n_formattable_h *)malloc(*count * sizeof(i18n_formattable_h));
+ retv_if(*array == NULL, I18N_ERROR_OUT_OF_MEMORY);
for (int i = 0; i < *count; i++) {
(*array)[i] = (const i18n_formattable_h) &f_array[i];