minix/lib/libsys/kprintf.c

22 lines
308 B
C
Raw Normal View History

/* printf() - system services printf() Author: Kees J. Bot
2005-04-21 16:53:53 +02:00
* 15 Jan 1994
*/
#define nil 0
#include <stdarg.h>
#include <stdio.h>
2005-04-21 16:53:53 +02:00
#include <stddef.h>
#include <limits.h>
int printf(const char *fmt, ...)
{
int n;
va_list ap;
2005-04-21 16:53:53 +02:00
va_start(ap, fmt);
n = vprintf(fmt, ap);
va_end(ap);
2005-04-21 16:53:53 +02:00
return n;
2005-04-21 16:53:53 +02:00
}