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
|
||||
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
const char *str, *str2;
|
||||
time_t curr_time;
|
||||
struct tm * info;
|
||||
const char *str;
|
||||
const char *prologe = "The Cylons were created by man. They rebelled. They "
|
||||
"evolved.";
|
||||
|
||||
|
@ -20,13 +18,6 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
printf("length: %d\n", eina_tmpstr_len(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();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue