summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-10-04 09:19:53 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-10-04 09:19:53 +0200
commit82095adae4d17fc4d04d490d478771d9e1be0006 (patch)
treeb78b329ff159c58e6c4154c7a35fe8c964467dfa /src/examples
parentb33923ceed1b305aa9319303c41b374ee153ed46 (diff)
examples: fix eina_tmpstr example after revert of strftime
Was left broken after the eina_tmpstr_strftime revert.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/eina/eina_tmpstr_01.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/examples/eina/eina_tmpstr_01.c b/src/examples/eina/eina_tmpstr_01.c
index a8f8d36900..36d8c6268b 100644
--- a/src/examples/eina/eina_tmpstr_01.c
+++ b/src/examples/eina/eina_tmpstr_01.c
@@ -7,9 +7,7 @@
7int 7int
8main(int argc EINA_UNUSED, char **argv EINA_UNUSED) 8main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
9{ 9{
10 const char *str, *str2; 10 const char *str;
11 time_t curr_time;
12 struct tm * info;
13 const char *prologe = "The Cylons were created by man. They rebelled. They " 11 const char *prologe = "The Cylons were created by man. They rebelled. They "
14 "evolved."; 12 "evolved.";
15 13
@@ -20,13 +18,6 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
20 printf("length: %d\n", eina_tmpstr_len(str)); 18 printf("length: %d\n", eina_tmpstr_len(str));
21 eina_tmpstr_del(str); 19 eina_tmpstr_del(str);
22 20
23 curr_time = time(NULL);
24 info = localtime(&curr_time);
25 str2 = eina_tmpstr_strftime("%I:%M%p", info);
26 printf("%s\n", str2);
27 printf("length: %d\n", eina_tmpstr_len(str2));
28 eina_tmpstr_del(str2);
29
30 eina_shutdown(); 21 eina_shutdown();
31 22
32 return 0; 23 return 0;