annotate src/readtest.c @ 1:af25f5c39d90
added diff from debian (masqmail-0.2.21-4)
author |
meillo@marmaro.de |
date |
Fri, 26 Sep 2008 20:56:23 +0200 |
parents |
|
children |
26e34ae9a3e3 |
rev |
line source |
meillo@0
|
1
|
meillo@0
|
2 #include "masqmail.h"
|
meillo@0
|
3 #include "readsock.h"
|
meillo@0
|
4
|
meillo@0
|
5 int main()
|
meillo@0
|
6 {
|
meillo@0
|
7 char *buf = g_malloc(20);
|
meillo@0
|
8 int size = 20, ret;
|
meillo@0
|
9
|
meillo@0
|
10 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF);
|
meillo@0
|
11 // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG);
|
meillo@0
|
12
|
meillo@0
|
13 printf("%s\n", buf);
|
meillo@0
|
14 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));
|
meillo@0
|
15
|
meillo@0
|
16 return 0;
|
meillo@0
|
17 }
|
meillo@0
|
18
|
meillo@0
|
19
|