output.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include "output.h"
  10. int test_printf_stdout(const char *fmt, ...)
  11. {
  12. va_list ap;
  13. int ret;
  14. va_start(ap, fmt);
  15. ret = test_vprintf_stdout(fmt, ap);
  16. va_end(ap);
  17. return ret;
  18. }
  19. int test_printf_stderr(const char *fmt, ...)
  20. {
  21. va_list ap;
  22. int ret;
  23. va_start(ap, fmt);
  24. ret = test_vprintf_stderr(fmt, ap);
  25. va_end(ap);
  26. return ret;
  27. }
  28. int test_printf_tapout(const char *fmt, ...)
  29. {
  30. va_list ap;
  31. int ret;
  32. va_start(ap, fmt);
  33. ret = test_vprintf_tapout(fmt, ap);
  34. va_end(ap);
  35. return ret;
  36. }
  37. int test_printf_taperr(const char *fmt, ...)
  38. {
  39. va_list ap;
  40. int ret;
  41. va_start(ap, fmt);
  42. ret = test_vprintf_taperr(fmt, ap);
  43. va_end(ap);
  44. return ret;
  45. }