12498b56bSopenharmony_ci/*
22498b56bSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
32498b56bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
42498b56bSopenharmony_ci * you may not use this file except in compliance with the License.
52498b56bSopenharmony_ci * You may obtain a copy of the License at
62498b56bSopenharmony_ci *
72498b56bSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
82498b56bSopenharmony_ci *
92498b56bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
102498b56bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
112498b56bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122498b56bSopenharmony_ci * See the License for the specific language governing permissions and
132498b56bSopenharmony_ci * limitations under the License.
142498b56bSopenharmony_ci */
152498b56bSopenharmony_ci
162498b56bSopenharmony_ci#include "vsprintf_p.h"
172498b56bSopenharmony_ci
182498b56bSopenharmony_ci#include <securec.h>
192498b56bSopenharmony_ci
202498b56bSopenharmony_ciint VsprintfP(char *strDest, size_t destMax, const char *format, va_list argList)
212498b56bSopenharmony_ci{
222498b56bSopenharmony_ci    return vsprintf_s(strDest, destMax, format, argList);
232498b56bSopenharmony_ci}