examples: fix eina_tmpstr example after revert of strftime
Was left broken after the eina_tmpstr_strftime revert.
This commit is contained in:
parent
fd9bb7dd30
commit
8da0b707d1
|
@ -7,9 +7,7 @@
|
||||||
int
|
int
|
||||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||||
{
|
{
|
||||||
const char *str, *str2;
|
const char *str;
|
||||||
time_t curr_time;
|
|
||||||
struct tm * info;
|
|
||||||
const char *prologe = "The Cylons were created by man. They rebelled. They "
|
const char *prologe = "The Cylons were created by man. They rebelled. They "
|
||||||
"evolved.";
|
"evolved.";
|
||||||
|
|
||||||
|
@ -20,13 +18,6 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||||
printf("length: %d\n", eina_tmpstr_len(str));
|
printf("length: %d\n", eina_tmpstr_len(str));
|
||||||
eina_tmpstr_del(str);
|
eina_tmpstr_del(str);
|
||||||
|
|
||||||
curr_time = time(NULL);
|
|
||||||
info = localtime(&curr_time);
|
|
||||||
str2 = eina_tmpstr_strftime("%I:%M%p", info);
|
|
||||||
printf("%s\n", str2);
|
|
||||||
printf("length: %d\n", eina_tmpstr_len(str2));
|
|
||||||
eina_tmpstr_del(str2);
|
|
||||||
|
|
||||||
eina_shutdown();
|
eina_shutdown();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue