masqmail

annotate src/base64/base64dec.c @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children 26e34ae9a3e3
rev   line source
meillo@0 1 #include <glib.h>
meillo@0 2 #include <stdio.h>
meillo@0 3 #include <stdlib.h>
meillo@0 4
meillo@0 5 #include "base64.h"
meillo@0 6
meillo@0 7 int main()
meillo@0 8 {
meillo@0 9 gchar line[100];
meillo@0 10 gchar *buf;
meillo@0 11 gint size;
meillo@0 12
meillo@0 13 while(fgets(line, 100, stdin)){
meillo@0 14 buf = base64_decode(line, &size);
meillo@0 15 fwrite(buf, size, 1, stdout);
meillo@0 16 g_free(buf);
meillo@0 17 }
meillo@0 18 exit(0);
meillo@0 19 }