mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
28 lines
692 B
C
28 lines
692 B
C
|
/*
|
||
|
* 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);
|
||
|
}
|