summaryrefslogtreecommitdiff
path: root/chromium/base/allocator/unittest_utils.cc
blob: 56dc3c8e72ebc19ebf300d4eed5136e1397b7ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2009 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// The unittests need a this in order to link up without pulling in tons
// of other libraries

#include <config.h>
#include <stddef.h>

inline int snprintf(char* buffer, size_t count, const char* format, ...) {
    int result;
    va_list args;
    va_start(args, format);
    result = _vsnprintf(buffer, count, format, args);
    va_end(args);
    return result;
}