jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1f31a714de107a94b0f827acfbf28418f24ad741
commit 1f31a714de107a94b0f827acfbf28418f24ad741 Author: Srivardhan Hebbar <sri.heb...@samsung.com> Date: Mon Dec 7 19:00:39 2015 +0900 eina: Adding example for base64 decode function. Summary: Depends on D3381 Signed-off-by: Srivardhan Hebbar <sri.heb...@samsung.com> Differential Revision: https://phab.enlightenment.org/D3383 PS: arc patch failed so manually applying this patch --- src/examples/eina/eina_str_01.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/examples/eina/eina_str_01.c b/src/examples/eina/eina_str_01.c index ce30ebd..028be37 100644 --- a/src/examples/eina/eina_str_01.c +++ b/src/examples/eina/eina_str_01.c @@ -18,6 +18,8 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) time_t curr_time; struct tm *info; char *b64; + unsigned char *decoded; + int decoded_len; eina_init(); @@ -71,7 +73,10 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) b64 = eina_str_base64_encode((unsigned char *)"Enlightenment", 9); printf("%s\n", b64); + decoded = eina_str_base64_decode(b64, &decoded_len); + printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len); free(b64); + free(decoded); eina_shutdown(); --