X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/c601c4f1156a25d03edaee3926dc1153a4b315da..de7321c7a482eaf0e80b549412578477729678a8:/base64.c diff --git a/base64.c b/base64.c index 5f5009a..10ce91e 100644 --- a/base64.c +++ b/base64.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: base64.c,v 1.2 1999/05/18 21:45:27 mdw Exp $ + * $Id: base64.c,v 1.3 1999/05/21 22:14:30 mdw Exp $ * * Base64 encoding and decoding. * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: base64.c,v $ + * Revision 1.3 1999/05/21 22:14:30 mdw + * Take advantage of the new dynamic string macros. + * * Revision 1.2 1999/05/18 21:45:27 mdw * Allow Base64 encode and decode of arbitrary rubbish. * @@ -251,12 +254,11 @@ void base64_init(base64_ctx *ctx) int main(int argc, char *argv[]) { unsigned char buf[BUFSIZ]; - dstr d; + dstr d = DSTR_INIT; base64_ctx ctx; void (*proc)(base64_ctx *, const unsigned char *, size_t, dstr *); size_t sz; - dstr_create(&d); base64_init(&ctx); if (argc > 1 && strcmp(argv[1], "-d") == 0)