2021-04-12 09:41:28 +00:00
|
|
|
#include "Platform.h"
|
2022-10-03 08:04:42 +00:00
|
|
|
#include <stdarg.h>
|
2021-04-12 09:41:28 +00:00
|
|
|
#include <stdint.h>
|
2021-06-28 01:57:35 +00:00
|
|
|
#include <stdio.h>
|
2016-01-04 06:49:33 +00:00
|
|
|
|
|
|
|
#ifndef _WIN32
|
2016-01-17 05:58:47 +00:00
|
|
|
int _vscprintf(const char * format, va_list pargs)
|
2016-01-04 06:49:33 +00:00
|
|
|
{
|
2016-01-17 05:57:08 +00:00
|
|
|
int retval;
|
|
|
|
va_list argcopy;
|
|
|
|
va_copy(argcopy, pargs);
|
2021-04-12 11:35:39 +00:00
|
|
|
retval = vsnprintf(nullptr, 0, format, argcopy);
|
2016-01-17 05:57:08 +00:00
|
|
|
va_end(argcopy);
|
|
|
|
return retval;
|
2016-01-04 06:49:33 +00:00
|
|
|
}
|
2023-01-29 23:37:51 +00:00
|
|
|
#endif
|