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:
Srivardhan Hebbar 2016-01-04 15:20:48 -08:00 committed by Cedric BAIL
parent 7078fcb835
commit 9d94188a23
1 changed files with 3 additions and 0 deletions

View File

@ -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();