Add base64.
authorRob Landley <rob@landley.net>
Sat, 13 Dec 2014 17:58:08 +0000 (11:58 -0600)
committerRob Landley <rob@landley.net>
Sat, 13 Dec 2014 17:58:08 +0000 (11:58 -0600)
commit0517eb7d604da454213e42d55f477401dc7f7ebf
treed4b93cafdf4dcd0ce030e8f9bdbb0dda5601bf87
parent87fbe12dbba8278d58d6581626e4cf4224dbca8d
Add base64.

The tizen guys wanted this. Yeah, I know there's base64 code in
uuencode/uudecode, but that this has -i, input lines aren't of fixed length,
encode/decode are in same file, there's no prefix/suffix code, it always
writes to stdout... Eliminating the code duplication wouldn't be worth
the if/else I'd have to add, so I just did a new one.

Factored out the base64 table init into lib.c though: that was worth sharing.
lib/lib.c
toys/other/base64.c [new file with mode: 0644]
toys/posix/uuencode.c