Skip to content

Instantly share code, notes, and snippets.

Created June 21, 2015 04:22
What would you like to do?
#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