Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame] | 1 | // Copyright 2009 The Chromium Authors |
[email protected] | 6a7e698 | 2009-11-25 03:21:47 | [diff] [blame] | 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> | ||||
avi | 9b6f4293 | 2015-12-26 22:15:14 | [diff] [blame] | 9 | #include <stddef.h> |
[email protected] | 6a7e698 | 2009-11-25 03:21:47 | [diff] [blame] | 10 | |
11 | inline int snprintf(char* buffer, size_t count, const char* format, ...) { | ||||
Bartek Nowierski | b73ddf5 | 2023-05-16 02:25:51 | [diff] [blame] | 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; | ||||
[email protected] | 6a7e698 | 2009-11-25 03:21:47 | [diff] [blame] | 18 | } |