Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
vfprintf.c
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual 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);
- }