1 // Copyright 2009 The Chromium Authors
2 // 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>
9 #include <stddef.h>
10
snprintf(char * buffer,size_t count,const char * format,...)11 inline int snprintf(char* buffer, size_t count, const char* format, ...) {
12 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;
18 }
19