forked from enlightenment/efl
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>
This commit is contained in:
parent
39dcf0e55a
commit
895008cfaa
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue