From 04fdca88243f7c19378104764157026d74ce8a6c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 4 Nov 1996 15:58:08 +0000 Subject: True internal buffering with stdio! svn path=/trunk/; revision=478 --- socket.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index c4ef1513..974fd70e 100644 --- a/socket.c +++ b/socket.c @@ -66,38 +66,6 @@ int clientPort; return sockfp; } -#if defined(HAVE_STDARG_H) -int SockPrintf(FILE *sockfp, char* format, ...) -{ -#else -int SockPrintf(sockfp,format,va_alist) -FILE *sockfp; -char *format; -va_dcl { -#endif - - va_list ap; - char buf[8192]; - -#if defined(HAVE_STDARG_H) - va_start(ap, format) ; -#else - va_start(ap); -#endif - vsprintf(buf, format, ap); - va_end(ap); - return SockWrite(buf, strlen(buf), sockfp); - -} - -int SockWrite(buf,len,sockfp) -char *buf; -int len; -FILE *sockfp; -{ - return(fputs(buf, sockfp)); -} - int SockGets(buf, len, sockfp) char *buf; int len; -- cgit v1.2.3