From 895008cfaa0e776df6ed62524a45ae361303f106 Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Mon, 4 Jan 2016 15:20:48 -0800 Subject: [PATCH] eina: update example for with eina_base64url_decode function. Summary: Depends on D3521 Signed-off-by: Srivardhan Hebbar Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3523 Signed-off-by: Cedric BAIL --- src/examples/eina/eina_str_01.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/examples/eina/eina_str_01.c b/src/examples/eina/eina_str_01.c index 4cf67a0..ec34ce4 100644 --- a/src/examples/eina/eina_str_01.c +++ b/src/examples/eina/eina_str_01.c @@ -80,7 +80,10 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) b64 = eina_str_base64url_encode((unsigned char *)"www.enlightenment.org", 21); 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(); -- 2.7.4