/* This function will fill a formatted string to buffer.  */
int rt_sprintf(char *buf, const char *format,...)
/* This function will fill a formatted string to buffer.  */
int rt_sprintf(char *buf, const char *format,...)
{
    rt_int32_t n = 0;
    va_list arg_ptr;
    va_start(arg_ptr, format);
    n = rt_vsprintf(buf, format, arg_ptr);
    va_end(arg_ptr);
    return n;
}