1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Doc fix. Credit base64_decode coming from Recode.

This commit is contained in:
hniksic 2006-06-25 09:22:26 -07:00
parent 272a9a2d90
commit f2756871a6

View File

@ -1954,14 +1954,17 @@ base64_encode (const void *data, int length, char *dest)
#define IS_ASCII(c) (((c) & 0x80) == 0) #define IS_ASCII(c) (((c) & 0x80) == 0)
/* Decode data from BASE64 (pointer to \0-terminated text) into memory /* Decode data from BASE64 (a null-terminated string) into memory
pointed to by DEST. DEST should be large enough to accomodate the pointed to by DEST. DEST is assumed to be large enough to
decoded data, which is guaranteed to be less than strlen(base64). accomodate the decoded data, which is guaranteed to be no more than
3/4*strlen(base64).
Since DEST is assumed to contain binary data, it is not Since DEST is assumed to contain binary data, it is not
NUL-terminated. The function returns the length of the data NUL-terminated. The function returns the length of the data
written to TO. -1 is returned in case of error caused by malformed written to TO. -1 is returned in case of error caused by malformed
base64 input. */ base64 input.
This function originates from Free Recode. */
int int
base64_decode (const char *base64, void *dest) base64_decode (const char *base64, void *dest)