summaryrefslogtreecommitdiff
path: root/substdio.c
blob: d03dff2a1cb9ee5e6ee055b74773bb7c524132a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "substdio.h"

void substdio_fdbuf(s,op,fd,buf,len)
register substdio *s;
register int (*op)();
register int fd;
register char *buf;
register int len;
{
  s->x = buf;
  s->fd = fd;
  s->op = op;
  s->p = 0;
  s->n = len;
}