masqmail
view src/readtest.c @ 7:969bc91ff13b
removed docs from Makefiles; stuff about last commit
author | meillo@marmaro.de |
---|---|
date | Mon, 27 Oct 2008 14:51:31 +0100 |
parents | |
children | 26e34ae9a3e3 |
line source
2 #include "masqmail.h"
3 #include "readsock.h"
5 int main()
6 {
7 char *buf = g_malloc(20);
8 int size = 20, ret;
10 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF);
11 // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG);
13 printf("%s\n", buf);
14 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));
16 return 0;
17 }