#include "iobuf.h"

int ibuf_eof(ibuf* in)
{
  return (in->io.flags & IOBUF_EOF) &&
    (in->io.bufstart >= in->io.buflen);
}


syntax highlighted by Code2HTML, v. 0.9.1