_sprintw.c
来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 26 行
C
26 行
#ifndef lintstatic char sccsid[] = "@(#)_sprintw.c 1.1 92/07/30 SMI"; /* from S5R2 1.1 */#endif# include "curses.ext"# include <varargs.h>/* * This routine actually executes the printf and adds it to the window * * This code now uses the vsprintf routine, which portably digs * into stdio. We provide a vsprintf for older systems that don't * have one. */_sprintw(win, fmt, ap)WINDOW *win;char *fmt;va_list ap;{ char buf[BUFSIZ]; vsprintf(buf, fmt, ap); return waddstr(win, buf);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?