diff options
Diffstat (limited to 'common/format_string.h')
-rw-r--r-- | common/format_string.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/common/format_string.h b/common/format_string.h new file mode 100644 index 0000000..a879d4e --- /dev/null +++ b/common/format_string.h @@ -0,0 +1,20 @@ +/* + * File: format_string.h + * + * Copyright (c) Freescale Semiconductor, Inc. All rights reserved. + * See included license file for license details. + */ +#if !defined(_format_string_h_) +#define _format_string_h_ + +#include <string> +#include <stdexcept> + +/*! + * \brief Returns a formatted STL string using printf format strings. + */ +std::string format_string(const char * fmt, ...); + + +#endif // _format_string_h_ + |