All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
vsnprintf.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_ARCH_VSNPRINTF_H
8#define PXR_BASE_ARCH_VSNPRINTF_H
9
13
14#include "pxr/pxr.h"
15#include "pxr/base/arch/api.h"
17
18#include <stdio.h>
19#include <stdarg.h>
20#include <string>
21
22PXR_NAMESPACE_OPEN_SCOPE
23
26
39ARCH_API
40int ArchVsnprintf(char *str, size_t size, const char *format, va_list ap)
41#ifndef doxygen
43#endif /* doxygen */
44 ;
45
62ARCH_API
63std::string ArchStringPrintf(const char *fmt, ...)
64#ifndef doxygen
66#endif /* doxygen */
67 ;
68
77ARCH_API
78std::string ArchVStringPrintf(const char *fmt, va_list ap)
79#ifndef doxygen
81 ;
82#endif
83
85
86PXR_NAMESPACE_CLOSE_SCOPE
87
88#endif // PXR_BASE_ARCH_VSNPRINTF_H
Define function attributes.
#define ARCH_PRINTF_FUNCTION(_fmt, _firstArg)
Macro used to indicate a function takes a printf-like specification.
Definition: attributes.h:34
ARCH_API std::string ArchStringPrintf(const char *fmt,...)
Returns a string formed by a printf()-like specification.
ARCH_API int ArchVsnprintf(char *str, size_t size, const char *format, va_list ap)
Return the number of characters (not including the null character) necessary for a particular sprintf...