shithub: neatroff

ref: 7127cb9afb7ff6e609b6b9b3cecf3705bdeb5cf7
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;
}