Description: Utility module without DCE dependencies
File name:utils_s1.c
#
/* Common client and server utils. client code intended for use on windows only
*/
#include "utils_s1.h"
#define MAXLINE 512
/* non DCE function READN - Read nbytes from file descriptor FD */
int readn(register int fd,
register char * ptr,
register int nbytes) {
int nleft, nread;
nleft = nbytes;
while (nleft > 0) {
nread = read(fd, ptr, nleft);
if (nread < 0) return nread;
else if (nread == 0) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.