28 lines
692 B
C
Raw Normal View History

2021-12-08 20:48:46 +08:00
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-07 lyon the first version
*/
#include <rtthread.h>
#include "pikaPlatform.h"
/* sprintf support */
int __platform_sprintf(char* buff, char* fmt, ...) {
va_list args;
va_start(args, fmt);
int res = rt_vsprintf(buff, fmt, args);
va_end(args);
return res;
}
int __platform_vsprintf(char* buff, char* fmt, va_list args){
return rt_vsprintf(buff, fmt, args);
}
int __platform_vsnprintf(char* buff, size_t size, const char* fmt, va_list args){
return rt_vsnprintf(buff, size, fmt, args);
}