29 lines
365 B
C
29 lines
365 B
C
#ifndef lint
|
|
static char sccsid[] = "@(#)_sputc.c 1.1 94/10/31 SMI"; /* from S5R2 1.1 */
|
|
#endif
|
|
|
|
/*
|
|
* 1/26/81 (Berkeley) @(#)standout.c 1.1
|
|
*/
|
|
|
|
# include "curses.ext"
|
|
|
|
#ifdef DEBUG
|
|
_sputc(c, f)
|
|
chtype c;
|
|
FILE *f;
|
|
{
|
|
int so;
|
|
|
|
so = c & A_ATTRIBUTES;
|
|
c &= 0177;
|
|
if (so) {
|
|
putc('<', f);
|
|
fprintf(f, "%o,", so);
|
|
}
|
|
putc(c, f);
|
|
if (so)
|
|
putc('>', f);
|
|
}
|
|
#endif
|