masqmail
diff src/base64/base64enc.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 |
line diff
1.1 --- a/src/base64/base64enc.c Mon Oct 27 16:21:27 2008 +0100 1.2 +++ b/src/base64/base64enc.c Mon Oct 27 16:23:10 2008 +0100 1.3 @@ -1,24 +1,23 @@ 1.4 - 1.5 #include <glib.h> 1.6 #include <stdio.h> 1.7 #include <stdlib.h> 1.8 1.9 #include "base64.h" 1.10 1.11 -int main() 1.12 +int 1.13 +main() 1.14 { 1.15 - gchar in[58]; 1.16 - gint size; 1.17 + gchar in[58]; 1.18 + gint size; 1.19 1.20 - do{ 1.21 - gchar *out; 1.22 + do { 1.23 + gchar *out; 1.24 1.25 - size = fread(in, 1, 54, stdin); 1.26 - out = base64_encode(in, size); 1.27 - fputs(out, stdout); 1.28 - putchar('\n'); 1.29 - g_free(out); 1.30 - }while(size == 54); 1.31 - exit(0); 1.32 + size = fread(in, 1, 54, stdin); 1.33 + out = base64_encode(in, size); 1.34 + fputs(out, stdout); 1.35 + putchar('\n'); 1.36 + g_free(out); 1.37 + } while (size == 54); 1.38 + exit(0); 1.39 } 1.40 -