static char sccsid
[] = "@(#)tttermcap.c 3.6 %G%";
* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
register struct tt_str
*s
;
if ((str
= tgetstr(str
, &tt_strp
)) == 0)
if ((s
= (struct tt_str
*) malloc(sizeof *s
)) == 0)
s
->ts_n
= tt_strp
- s
->ts_str
- 1;
register struct tt_str
*s
;
if (tgetstr(str
, &bufp
) == 0)
if ((s
= (struct tt_str
*) malloc(sizeof *s
)) == 0)
s
->ts_n
= tt_strp
- s
->ts_str
;
register char *p
= s
->ts_str
;
ttputs(tgoto(p
, col
, row
));
for (p
+= s
->ts_n
; *--p
== 0;)