blob: 6e728b29c0d4b9eec2aff91dcb6a9175f730419b [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2009 The Chromium Authors
[email protected]6a7e6982009-11-25 03:21:472// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// The unittests need a this in order to link up without pulling in tons
6// of other libraries
7
8#include <config.h>
avi9b6f42932015-12-26 22:15:149#include <stddef.h>
[email protected]6a7e6982009-11-25 03:21:4710
11inline int snprintf(char* buffer, size_t count, const char* format, ...) {
Bartek Nowierskib73ddf52023-05-16 02:25:5112 int result;
13 va_list args;
14 va_start(args, format);
15 result = _vsnprintf(buffer, count, format, args);
16 va_end(args);
17 return result;
[email protected]6a7e6982009-11-25 03:21:4718}