1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include <stdio.h>
- #include <stdarg.h>
- #include "php.h"
- #ifdef PHP_WIN32
- #include "config.w32.h"
- #else
- #include <php_config.h>
- #endif
- PHPAPI int
- php_sprintf (char*s, const char* format, ...)
- {
- va_list args;
- int ret;
- va_start (args, format);
- s[0] = '\0';
- ret = vsprintf (s, format, args);
- va_end (args);
- return (ret < 0) ? -1 : ret;
- }
|