OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef BASE_STRING_UTIL_WIN_H_ | 5 #ifndef BASE_STRING_UTIL_WIN_H_ |
6 #define BASE_STRING_UTIL_WIN_H_ | 6 #define BASE_STRING_UTIL_WIN_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 int length = _vsnwprintf_s(buffer, size, size - 1, format, arguments); | 37 int length = _vsnwprintf_s(buffer, size, size - 1, format, arguments); |
38 if (length < 0) | 38 if (length < 0) |
39 return _vscwprintf(format, arguments); | 39 return _vscwprintf(format, arguments); |
40 return length; | 40 return length; |
41 } | 41 } |
42 | 42 |
43 } // namespace base | 43 } // namespace base |
44 | 44 |
45 #endif // BASE_STRING_UTIL_WIN_H_ | 45 #endif // BASE_STRING_UTIL_WIN_H_ |
46 | |
OLD | NEW |