#include <_ansi.h>
#include <stdio.h>
#include "local.h"
#ifdef _HAVE_STDC
#include <stdarg.h>
#else
#include <varargs.h>
#endif
int
_printf_r (struct _reent *ptr, const char *fmt, ...)
_printf_r (ptr, fmt, va_alist)
struct _reent *ptr;
char *fmt;
va_dcl
{
int ret;
va_list ap;
_REENT_SMALL_CHECK_INIT(_stdout_r (ptr));
va_start (ap, fmt);
va_start (ap);
ret = _vfprintf_r (ptr, _stdout_r (ptr), fmt, ap);
va_end (ap);
return ret;
}
#ifndef _REENT_ONLY
printf (const char *fmt, ...)
printf (fmt, va_alist)
_REENT_SMALL_CHECK_INIT(_stdout_r (_REENT));
ret = vfprintf (_stdout_r (_REENT), fmt, ap);
#endif /* ! _REENT_ONLY */