dprintf.c 503 B

123456789101112131415161718192021222324252627
  1. /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
  2. *
  3. * GNU Library General Public License (LGPL) version 2 or later.
  4. *
  5. * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
  6. */
  7. #include <features.h>
  8. #ifdef __USE_GNU
  9. #include "_stdio.h"
  10. #include <stdarg.h>
  11. libc_hidden_proto(vdprintf)
  12. int dprintf(int filedes, const char * __restrict format, ...)
  13. {
  14. va_list arg;
  15. int rv;
  16. va_start(arg, format);
  17. rv = vdprintf(filedes, format, arg);
  18. va_end(arg);
  19. return rv;
  20. }
  21. #endif