Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created June 21, 2015 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shichao-an/26f53ad6de8d2e1a10b2 to your computer and use it in GitHub Desktop.
Save shichao-an/26f53ad6de8d2e1a10b2 to your computer and use it in GitHub Desktop.
#include "unp.h"
ssize_t readn(int filedes, void *buff, size_t nbytes);
ssize_t writen(int filedes, const void *buff, size_t nbytes);
ssize_t readline(int filedes, void *buff, size_t maxlen);
/* All return: number of bytes read or written, –1 on error */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment