wclreol.c
来自「详细介绍了一篇关于pci开发的接口芯片」· C语言 代码 · 共 26 行
C
26 行
/* CXL - Copyright (c) 1987-1989 by Mike Smedley - All Rights Reserved */
/* WCLREOL.C - clears from cursor postion to end of window's line */
#include <conio.h>
#include <dos.h>
#include "cxlvid.h"
#include "cxlwin.h"
int wclreol(void)
{
register int col,stopcol;
/* check for active window */
if(!_winfo.total) return(_winfo.errno=W_NOACTIVE);
/* calculate stop column */
stopcol=_winfo.active->ecol-_winfo.active->border;
/* clear to end of window's line */
for(col=_winfo.active->column;col<=stopcol;col++)
printc(_winfo.active->row,col,_winfo.active->attr,_winfo.fillch);
/* return normally */
return(_winfo.errno=W_NOERROR);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?