nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

substdio.c (173B)


      1 #include "substdio.h"
      2 
      3 void substdio_fdbuf(substdio *s, ssize_t (*op)(), int fd, char *buf, int len)
      4 {
      5   s->x = buf;
      6   s->fd = fd;
      7   s->op = op;
      8   s->p = 0;
      9   s->n = len;
     10 }