masqmail-0.2

annotate src/readtest.c @ 8:7e01b9096bb6

removed tests from Makefiles
author meillo@marmaro.de
date Mon, 27 Oct 2008 16:20:41 +0100
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