f_long = _date_basic_format_convert("EEEE", i, "day");
printf("| %d | %s | %s | %s\n", i, f_narrow, f_short, f_long);
+
+ free(f_narrow);
+ free(f_short);
+ free(f_long);
}
PRINT_ASCIIDOC_LOG("|===\n");
s_long = _date_basic_format_convert("cccc", i, "day");
printf("| %d | %s | %s | %s\n", i, s_narrow, s_short, s_long);
+
+ free(s_narrow);
+ free(s_short);
+ free(s_long);
}
PRINT_ASCIIDOC_LOG("|===\n");
f_long = _date_basic_format_convert("MMMM", i, "month");
printf("| %-2d | %s | %s | %s\n", i, f_narrow, f_short, f_long);
+
+ free(f_narrow);
+ free(f_short);
+ free(f_long);
}
PRINT_ASCIIDOC_LOG("|===\n");
s_long = _date_basic_format_convert("LLLL", i, "month");
printf("| %-2d | %s | %s | %s\n", i, s_narrow, s_short, s_long);
+
+ free(s_narrow);
+ free(s_short);
+ free(s_long);
}
PRINT_ASCIIDOC_LOG("|===\n");
- free(f_narrow);
- free(f_short);
- free(f_long);
- free(s_narrow);
- free(s_short);
- free(s_long);
return 0;
}
char s[BUF_SIZE] = {0, };
i18n_ustring_copy_au(s, result);
- free(result);
printf("| Current time | %s\n", s);
/* Get the selected timezone ID. */