• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*############################################################################
2   # Copyright 2016-2017 Intel Corporation
3   #
4   # Licensed under the Apache License, Version 2.0 (the "License");
5   # you may not use this file except in compliance with the License.
6   # You may obtain a copy of the License at
7   #
8   #     http://www.apache.org/licenses/LICENSE-2.0
9   #
10   # Unless required by applicable law or agreed to in writing, software
11   # distributed under the License is distributed on an "AS IS" BASIS,
12   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   # See the License for the specific language governing permissions and
14   # limitations under the License.
15   ############################################################################*/
16 
17 /*!
18  * \file
19  * \brief Buffer handling utilities interface.
20  */
21 #ifndef EXAMPLE_UTIL_STRUTIL_H_
22 #define EXAMPLE_UTIL_STRUTIL_H_
23 
24 #include <stdarg.h>
25 #include <stdio.h>
26 
27 // Prior to version 14.0 snprintf was not supported in MSVC
28 #if defined(_MSC_VER) && _MSC_VER < 1900
29 int vsnprintf(char* outBuf, size_t size, const char* format, va_list ap);
30 int snprintf(char* outBuf, size_t size, const char* format, ...);
31 #endif
32 
33 #endif  // EXAMPLE_UTIL_STRUTIL_H_
34