view buffer.c @ 3:c7c914a43c06

fix errno conflict (twice?)
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 29 Jan 2025 12:37:44 +0000
parents 2cb46628feec
children 3bfef1f22a97
line wrap: on
line source

#include "buffer.h"

void buffer_init(buffer *s,int (*op)(),int fd,char *buf,unsigned int len)
{
  s->x = buf;
  s->fd = fd;
  s->op = op;
  s->p = 0;
  s->n = len;
}