diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-25 20:51:20 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-25 20:54:16 +0100 |
commit | 70431dcb67e33bd466d03fb41e5a90ba301127a4 (patch) | |
tree | d3d2d5373c5da4f27f431d3504b55c623e9b95e0 /util.h | |
parent | ef28fcb0f59d11bdf9f574a999045bc24ca40e18 (diff) |
Make sendall* utils
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5,3 +5,7 @@ char* copy_buf(char *buf,int len); char* copy_str(char *str); void str_toupper(char *str); + +// Returns -1 on error, 0 on success +int sendall(int sock,const char *buf,ssize_t len); +int sendallf(int sock,const char *format,...) __attribute__((format (printf, 2, 3))); |