/************************************************************* * File: lib/printf.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ #include #include #ifndef PMCC #define printf xprintf #define vfprintf xvfprintf #endif /************************************************************* * printf(fmt,va_alist) * print formatted output to stdout */ int printf(const char *fmt,...) { va_list ap; int len; va_start(ap,fmt); len = vfprintf(stdout,fmt,ap); va_end(ap); return(len); }