eina: example for base64 encoding.
Summary: Depends on D3228 Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3230 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
c347fd4621
commit
3b5da62920
|
@ -17,6 +17,7 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
char *time_arr;
|
||||
time_t curr_time;
|
||||
struct tm *info;
|
||||
char *b64;
|
||||
|
||||
eina_init();
|
||||
|
||||
|
@ -68,6 +69,10 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
printf("Today's Date: %s\n", time_arr);
|
||||
free(time_arr);
|
||||
|
||||
b64 = eina_str_base64_encode((unsigned char *)"Enlightenment", 9);
|
||||
printf("%s\n", b64);
|
||||
free(b64);
|
||||
|
||||
eina_shutdown();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue