16d528ed9Sopenharmony_ci// Copyright 2013 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci// found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ci#ifndef BASE_STRINGS_STRING_UTIL_POSIX_H_
66d528ed9Sopenharmony_ci#define BASE_STRINGS_STRING_UTIL_POSIX_H_
76d528ed9Sopenharmony_ci
86d528ed9Sopenharmony_ci#include <stdarg.h>
96d528ed9Sopenharmony_ci#include <stddef.h>
106d528ed9Sopenharmony_ci#include <string.h>
116d528ed9Sopenharmony_ci
126d528ed9Sopenharmony_ci#include "base/logging.h"
136d528ed9Sopenharmony_ci
146d528ed9Sopenharmony_cinamespace base {
156d528ed9Sopenharmony_ci
166d528ed9Sopenharmony_ciinline int vsnprintf(char* buffer,
176d528ed9Sopenharmony_ci                     size_t size,
186d528ed9Sopenharmony_ci                     const char* format,
196d528ed9Sopenharmony_ci                     va_list arguments) {
206d528ed9Sopenharmony_ci  return ::vsnprintf(buffer, size, format, arguments);
216d528ed9Sopenharmony_ci}
226d528ed9Sopenharmony_ci
236d528ed9Sopenharmony_ci}  // namespace base
246d528ed9Sopenharmony_ci
256d528ed9Sopenharmony_ci#endif  // BASE_STRINGS_STRING_UTIL_POSIX_H_
26