Mercurial > masqmail
comparison src/readtest.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 | dcb315792513 |
comparison
equal
deleted
inserted
replaced
9:31cc8a89cb74 | 10:26e34ae9a3e3 |
---|---|
1 | 1 |
2 #include "masqmail.h" | 2 #include "masqmail.h" |
3 #include "readsock.h" | 3 #include "readsock.h" |
4 | 4 |
5 int main() | 5 int |
6 main() | |
6 { | 7 { |
7 char *buf = g_malloc(20); | 8 char *buf = g_malloc(20); |
8 int size = 20, ret; | 9 int size = 20, ret; |
9 | 10 |
10 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF); | 11 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF); |
11 // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG); | 12 // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG); |
12 | 13 |
13 printf("%s\n", buf); | 14 printf("%s\n", buf); |
14 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf)); | 15 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf)); |
15 | 16 |
16 return 0; | 17 return 0; |
17 } | 18 } |
18 | |
19 |