Pixar Arch 0.25.8
Loading...
Searching...
No Matches
vsnprintf.h
Go to the documentation of this file.
1// Copyright 2016 Pixar
2//
3// Licensed under the terms set forth in the LICENSE.txt file available at
4// https://openusd.org/license.
5//
6// Modified by Jeremy Retailleau.
7
8#ifndef PXR_ARCH_VSNPRINTF_H
9#define PXR_ARCH_VSNPRINTF_H
10
13
14#include "pxr/arch/pxr.h"
15#include "pxr/arch/api.h"
16#include "pxr/arch/attributes.h"
17
18#include <stdio.h>
19#include <stdarg.h>
20#include <string>
21
22ARCH_NAMESPACE_OPEN_SCOPE
23
36ARCH_API
37int ArchVsnprintf(char *str, size_t size, const char *format, va_list ap)
38#ifndef doxygen
40#endif /* doxygen */
41 ;
42
59ARCH_API
60std::string ArchStringPrintf(const char *fmt, ...)
61#ifndef doxygen
63#endif /* doxygen */
64 ;
65
74ARCH_API
75std::string ArchVStringPrintf(const char *fmt, va_list ap)
76#ifndef doxygen
78#endif /* doxygen */
79 ;
80
81ARCH_NAMESPACE_CLOSE_SCOPE
82
83#endif // PXR_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:35
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...
std::string ArchStringPrintf(const char *fmt,...)
Returns a string formed by a printf()-like specification.
std::string ArchVStringPrintf(const char *fmt, va_list ap)
Returns a string formed by a printf()-like specification.