char   *code;
char   **code;
getcaps(s)	char   *s;{	char   *code;		/* two letter code */	char ***cap;		/* pointer to cap string */	char   *bufp;		/* pointer to cap buffer */	char    tentry[1024];	/* temporary uncoded caps buffer */	tgetent(tentry, s);	/* get uncoded termcap entry */	LI = tgetnum("li");	/* get number of lines */	if (LI == -1)		LI = 12;	CO = tgetnum("co");	/* get number of columns */	if (CO == -1)		CO = 65;	bufp = tbuf;		/* get padding character */	tgetstr("pc", &bufp);	if (bufp != tbuf)		PC = *tbuf;	else		PC = 0;	bufp = tbuf;		/* get string entries */	cap = tstr;	for (code = tcap; *code; code += 2)		**cap++ = (char *)tgetstr(code, &bufp);	/* get pertinent lengths */	if (HO)		lHO = strlen(HO);	if (BC)		lBC = strlen(BC);	else		lBC = 1;	if (UP)		lUP = strlen(UP);	if (ND)		lND = strlen(ND);	if (LI < 24 || CO < 72 || !(CL && UP && ND))		return(0);	linect = (int *)calloc(LI + 1, sizeof(int));	return(1);}