1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef BASE_STRINGS_STRING_UTIL_POSIX_H_ 6#define BASE_STRINGS_STRING_UTIL_POSIX_H_ 7 8#include <stdarg.h> 9#include <stddef.h> 10#include <string.h> 11 12#include "base/logging.h" 13 14namespace base { 15 16inline int vsnprintf(char* buffer, 17 size_t size, 18 const char* format, 19 va_list arguments) { 20 return ::vsnprintf(buffer, size, format, arguments); 21} 22 23} // namespace base 24 25#endif // BASE_STRINGS_STRING_UTIL_POSIX_H_ 26