HF RL Explorer

base64 encoding: implement stub

base64 encoding: implement stub: a task in smol-software-harbor (Harbor dataset). b64 decode() in src/b64.c is a stub that always fails. Implement it as src/b64.h documents: decode standard base64 with = padding into out and return the number of bytes; return -1 when the length is not a multiple…

The task

`b64_decode()` in `src/b64.c` is a stub that always fails. Implement it as `src/b64.h` documents: decode standard base64 with `=` padding into `out` and return the number of bytes; return -1 when the length is not a multiple of 4, a character is outside the alphabet, or padding appears anywhere but at the end. Run…

Part of efederici/smol-software-harbor.