masqmail
annotate src/base64/base64dec.c @ 8:7e01b9096bb6
removed tests from Makefiles
author | meillo@marmaro.de |
---|---|
date | Mon, 27 Oct 2008 16:20:41 +0100 |
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 } |