vb_puts.c
来自「一个c语言写做的编译器的源码」· C语言 代码 · 共 24 行
C
24 行
/*@A (C) 1992 Allen I. Holub */
#include <tools/vbios.h>
void vb_puts( str, move_cur )
char *str;
int move_cur;
{
/* Write a string to the screen in TTY mode. If move_cur is true the cursor
* is left at the end of string. If not the cursor will be restored to its
* original position (before the write).
*/
int posn;
if( !move_cur )
posn = VB_GETCUR();
while( *str )
VB_PUTCHAR( *str++ );
if( !move_cur )
VB_SETCUR( posn );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?