summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2016-01-04 15:20:48 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-01-04 15:42:59 -0800
commit895008cfaa0e776df6ed62524a45ae361303f106 (patch)
treeeb3cb3101a06bf649c96890009308fe61325bf2d
parent39dcf0e55aa76be1f0b9dbdb66bb95241b502b45 (diff)
eina: update example for with eina_base64url_decode function.
Summary: Depends on D3521 Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3523 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/examples/eina/eina_str_01.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/examples/eina/eina_str_01.c b/src/examples/eina/eina_str_01.c
index 4cf67a0d72..ec34ce4299 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)
80 80
81 b64 = eina_str_base64url_encode((unsigned char *)"www.enlightenment.org", 21); 81 b64 = eina_str_base64url_encode((unsigned char *)"www.enlightenment.org", 21);
82 printf("%s\n", b64); 82 printf("%s\n", b64);
83 decoded = eina_str_base64_decode(b64, &decoded_len);
84 printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len);
83 free(b64); 85 free(b64);
86 free(decoded);
84 87
85 eina_shutdown(); 88 eina_shutdown();
86 89