C로 만드는 base64 디코드 커맨드
출처: http://www.cs.man.ac.uk/~fellowsd/tcl/base64decode.c C로 작성된 base64 확장 커맨드입니다. C로 확장하는 방법을 배우는데도 꽤 괜찮은 예제라 생각합니다.#ifdef TCLCMD#include #else#include #endif#include static const char encoding_vector[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";#ifdef TCLCMDstatic int atend;static intgetidx(char *buffer, int len, int *posn) { char c; char *idx; if (atend) return -1;..