mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
Update mg_base64_decode.md
This commit is contained in:
1 parent
a2c06ac6ba
commit
a3ea1eddfb
1 file changed
+4
-4
@@ -6,11 +6,11 @@ signature: |
|
|||||||
int mg_base64_decode(const unsigned char *s, int len, char *dst);
|
int mg_base64_decode(const unsigned char *s, int len, char *dst);
|
||||||
---
|
---
|
||||||
|
|
||||||
Decode base64-encoded string `s`, `len` into the destination `dst`.
|
Decodes base64-encoded string `s`, `len` into the destination `dst`.
|
||||||
Destination has to have enough space to hold decoded buffer.
|
The destination has to have enough space to hold the decoded buffer.
|
||||||
Decoding stops either when all string has been decoded, or invalid
|
Decoding stops either when all strings have been decoded or invalid an
|
||||||
character appeared.
|
character appeared.
|
||||||
Destination is '\0'-terminated.
|
Destination is '\0'-terminated.
|
||||||
Return number of decoded characters. On success, that should be equal to
|
Returns the number of decoded characters. On success, that should be equal to
|
||||||
`len`. On error (invalid character) the return value is smaller then `len`.
|
`len`. On error (invalid character) the return value is smaller then `len`.
|
||||||
|
|
||||||
Reference in new issue
Block a user