diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-16 23:51:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-16 23:51:19 +0000 |
commit | 9cafaabdf600ad984c19f2b5e98d052c2f9c3e39 (patch) | |
tree | 9f32923aebc88628de90ee024aa6d8ceacef8844 /socket.h | |
parent | f9fe7d50774c40e7bc637500188c9e130be0ea0a (diff) | |
download | fetchmail-9cafaabdf600ad984c19f2b5e98d052c2f9c3e39.tar.gz fetchmail-9cafaabdf600ad984c19f2b5e98d052c2f9c3e39.tar.bz2 fetchmail-9cafaabdf600ad984c19f2b5e98d052c2f9c3e39.zip |
Yes! True stdio buffering at last!.
svn path=/trunk/; revision=632
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -23,21 +23,13 @@ returns 0 for success. */ int SockGets(char *buf, int len, FILE *sockfp); -/* -Write a chunk of bytes to the socket. -Returns 0 for success. -*/ -int SockWrite(char *buf, int len, FILE *sockfp); +/* Ship a character array to the socket */ +#define SockWrite(buf, len, sockfp) fwrite(buf, 1, len, sockfp) /* Send formatted output to the socket, followed -by a CR-LF. -Returns 0 for success. +by a CR-LF. Returns 0 for success. */ -#if defined(HAVE_STDARG_H) -int SockPrintf(FILE *sockfp, char *format, ...) ; -#else -int SockPrintf(); -#endif - +#define SockPrintf fprintf + #endif /* SOCKET__ */ |