Mercurial > masqmail
view src/base64/base64enc.c @ 42:03817f849106
decided to release the next version as 0.2.22 (not as 0.3.0)
I'll keep the 0.2 branch as the stable version which gets only bugfixed.
Soon I'll split off a 0.3 branch for further (incompatible) development.
author | meillo@marmaro.de |
---|---|
date | Thu, 13 May 2010 17:34:23 +0200 |
parents | 26e34ae9a3e3 |
children |
line wrap: on
line source
#include <glib.h> #include <stdio.h> #include <stdlib.h> #include "base64.h" int main() { gchar in[58]; gint size; do { gchar *out; size = fread(in, 1, 54, stdin); out = base64_encode(in, size); fputs(out, stdout); putchar('\n'); g_free(out); } while (size == 54); exit(0); }