Mercurial > masqmail
annotate src/base64/base64dec.c @ 7:969bc91ff13b
removed docs from Makefiles; stuff about last commit
author | meillo@marmaro.de |
---|---|
date | Mon, 27 Oct 2008 14:51:31 +0100 |
parents | 08114f7dcc23 |
children | 26e34ae9a3e3 |
rev | line source |
---|---|
0 | 1 #include <glib.h> |
2 #include <stdio.h> | |
3 #include <stdlib.h> | |
4 | |
5 #include "base64.h" | |
6 | |
7 int main() | |
8 { | |
9 gchar line[100]; | |
10 gchar *buf; | |
11 gint size; | |
12 | |
13 while(fgets(line, 100, stdin)){ | |
14 buf = base64_decode(line, &size); | |
15 fwrite(buf, size, 1, stdout); | |
16 g_free(buf); | |
17 } | |
18 exit(0); | |
19 } |