⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vfprintf.c

📁 一百多个例子很好的verilog 学习资料
💻 C
字号:
/* This file MUST be compiled with the -zC_TEXT so that it will go
 * into the same code segment with the Borland C library. It
 * references the internal Borland function __vprinter(), which is
 * defined to be near. It seems that the Borland linker does NOT detect
 * cross-segment calls to near functions, so omitting this option will
 * cause the executable to crash!
 */

#include "global.h"
#include "stdio.h"
#include <stdarg.h>

int pascal near __vprinter(
	unsigned pascal near (*)(void *,unsigned, FILE*),
	FILE *, char *, void _ss *);
static unsigned pascal near
fputter(void *ptr,unsigned n,FILE *fp)
{
	return fwrite(ptr,1,n,fp);
}


int
vfprintf(FILE *fp,char *fmt, va_list args)
{


	if(fp == NULL || fp->cookie != _COOKIE)
		return -1;
	return __vprinter(fputter,fp,fmt,(void _ss *)args);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -