masqmail
annotate src/base64/base64dec.c @ 4:2c09cca4cab9
removed references to distribution directories
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 21:51:05 +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 } |