comparison src/readtest.c @ 0:08114f7dcc23 0.2.21

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children 26e34ae9a3e3
comparison
equal deleted inserted replaced
-1:000000000000 0:08114f7dcc23
1
2 #include "masqmail.h"
3 #include "readsock.h"
4
5 int main()
6 {
7 char *buf = g_malloc(20);
8 int size = 20, ret;
9
10 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF);
11 // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG);
12
13 printf("%s\n", buf);
14 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));
15
16 return 0;
17 }
18
19