2001-03-17 04:17:14 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Utility routines.
|
|
|
|
*
|
2004-03-15 13:59:22 +05:30
|
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2001-03-17 04:17:14 +05:30
|
|
|
*
|
2006-05-20 00:59:19 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2001-03-17 04:17:14 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
|
2006-12-19 03:19:06 +05:30
|
|
|
#if defined(__GLIBC__) && __GLIBC__ < 2
|
2006-03-07 02:17:33 +05:30
|
|
|
int vdprintf(int d, const char *format, va_list ap)
|
2001-03-17 04:17:14 +05:30
|
|
|
{
|
|
|
|
char buf[BUF_SIZE];
|
|
|
|
int len;
|
|
|
|
|
|
|
|
len = vsprintf(buf, format, ap);
|
|
|
|
return write(d, buf, len);
|
|
|
|
}
|
|
|
|
#endif
|