comparison src/base64/base64dec.c @ 10:26e34ae9a3e3

changed indention and line wrapping to a more consistent style
author meillo@marmaro.de
date Mon, 27 Oct 2008 16:23:10 +0100
parents 08114f7dcc23
children
comparison
equal deleted inserted replaced
9:31cc8a89cb74 10:26e34ae9a3e3
2 #include <stdio.h> 2 #include <stdio.h>
3 #include <stdlib.h> 3 #include <stdlib.h>
4 4
5 #include "base64.h" 5 #include "base64.h"
6 6
7 int main() 7 int
8 main()
8 { 9 {
9 gchar line[100]; 10 gchar line[100];
10 gchar *buf; 11 gchar *buf;
11 gint size; 12 gint size;
12 13
13 while(fgets(line, 100, stdin)){ 14 while (fgets(line, 100, stdin)) {
14 buf = base64_decode(line, &size); 15 buf = base64_decode(line, &size);
15 fwrite(buf, size, 1, stdout); 16 fwrite(buf, size, 1, stdout);
16 g_free(buf); 17 g_free(buf);
17 } 18 }
18 exit(0); 19 exit(0);
19 } 20 }