xref: /netbsd-src/external/bsd/elftosb/dist/common/format_string.h (revision 993229b6fea628ff8b1fa09146c80b0cfb2768eb)
1*993229b6Sjkunz /*
2*993229b6Sjkunz  * File:	format_string.h
3*993229b6Sjkunz  *
4*993229b6Sjkunz  * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5*993229b6Sjkunz  * See included license file for license details.
6*993229b6Sjkunz  */
7*993229b6Sjkunz #if !defined(_format_string_h_)
8*993229b6Sjkunz #define _format_string_h_
9*993229b6Sjkunz 
10*993229b6Sjkunz #include <string>
11*993229b6Sjkunz #include <stdexcept>
12*993229b6Sjkunz 
13*993229b6Sjkunz /*!
14*993229b6Sjkunz  * \brief Returns a formatted STL string using printf format strings.
15*993229b6Sjkunz  */
16*993229b6Sjkunz std::string format_string(const char * fmt, ...);
17*993229b6Sjkunz 
18*993229b6Sjkunz 
19*993229b6Sjkunz #endif // _format_string_h_
20*993229b6Sjkunz 
21