shithub: neatroff

ref: 96f08d8dc0198c6c1ac478349ed76398c5cf7401
dir: /cp.c/

View raw version
#include "xroff.h"

static int cp_backed = -1;

int cp_next(void)
{
	int ret = cp_backed >= 0 ? cp_backed : in_next();
	cp_backed = -1;
	return ret;
}

void cp_back(int c)
{
	cp_backed = c;
}