| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // The unittests need a this in order to link up without pulling in tons | 5 // The unittests need a this in order to link up without pulling in tons |
| 6 // of other libraries | 6 // of other libraries |
| 7 | 7 |
| 8 #include <config.h> | 8 #include <config.h> |
| 9 #include <stddef.h> |
| 9 | 10 |
| 10 inline int snprintf(char* buffer, size_t count, const char* format, ...) { | 11 inline int snprintf(char* buffer, size_t count, const char* format, ...) { |
| 11 int result; | 12 int result; |
| 12 va_list args; | 13 va_list args; |
| 13 va_start(args, format); | 14 va_start(args, format); |
| 14 result = _vsnprintf(buffer, count, format, args); | 15 result = _vsnprintf(buffer, count, format, args); |
| 15 va_end(args); | 16 va_end(args); |
| 16 return result; | 17 return result; |
| 17 } | 18 } |
| 18 | 19 |
| OLD | NEW |