diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 15:58:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 15:58:08 +0000 |
commit | 04fdca88243f7c19378104764157026d74ce8a6c (patch) | |
tree | 3d734e45bdc7130f7bee3dfb8e6221de2d3d2e8f /socket.c | |
parent | 561818f2308e1f1325a944755cb126cf74d6f91a (diff) | |
download | fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.gz fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.bz2 fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.zip |
True internal buffering with stdio!
svn path=/trunk/; revision=478
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -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; |