spprintf.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Author: Marcus Boerger <helly@php.net> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef SPPRINTF_H
  17. #define SPPRINTF_H
  18. #include "snprintf.h"
  19. #include "zend_smart_str_public.h"
  20. #include "zend_smart_string_public.h"
  21. BEGIN_EXTERN_C()
  22. PHPAPI void php_printf_to_smart_string(smart_string *buf, const char *format, va_list ap);
  23. PHPAPI void php_printf_to_smart_str(smart_str *buf, const char *format, va_list ap);
  24. END_EXTERN_C()
  25. #define spprintf zend_spprintf
  26. #define strpprintf zend_strpprintf
  27. #define vspprintf zend_vspprintf
  28. #define vstrpprintf zend_vstrpprintf
  29. #endif /* SPPRINTF_H */