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
printf.c
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /* $Id: printf.c,v 1.7 2000/02/08 20:24:23 davem Exp $
- * printf.c: Internal prom library printf facility.
- *
- * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
- */
- /* This routine is internal to the prom library, no one else should know
- * about or use it! It's simple and smelly anyway....
- */
- #include <linux/kernel.h>
- #include <asm/openprom.h>
- #include <asm/oplib.h>
- static char ppbuf[1024];
- void
- prom_printf(char *fmt, ...)
- {
- va_list args;
- char ch, *bptr;
- int i;
- va_start(args, fmt);
- i = vsprintf(ppbuf, fmt, args);
- bptr = ppbuf;
- while((ch = *(bptr++)) != 0) {
- if(ch == 'n')
- prom_putchar('r');
- prom_putchar(ch);
- }
- va_end(args);
- return;
- }