mpd/src/util/FormatString.hxx

29 lines
506 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_FORMAT_STRING_HXX
#define MPD_FORMAT_STRING_HXX
#include "Compiler.h"
#include <cstdarg>
class AllocatedString;
/**
* Format into an #AllocatedString.
*/
[[gnu::nonnull]]
AllocatedString
FormatStringV(const char *fmt, std::va_list args) noexcept;
/**
* Format into an #AllocatedString.
*/
[[gnu::nonnull(1)]]
gcc_printf(1,2)
AllocatedString
2017-05-16 10:22:52 +02:00
FormatString(const char *fmt, ...) noexcept;
#endif