cwidget
0.5.16
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
cwidget
generic
util
ssprintf.h
1
// ssprintf.h
2
//
3
// Copyright (C) 2005, 2007, 2009 Daniel Burrows
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License as
7
// published by the Free Software Foundation; either version 2 of
8
// the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; see the file COPYING. If not, write to
17
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
// Boston, MA 02111-1307, USA.
19
20
#ifndef SSPRINTF_H
21
#define SSPRINTF_H
22
23
#include <string>
24
#include <stdarg.h>
25
26
namespace
cwidget
27
{
28
namespace
util
29
{
30
31
// Printf for std::string.
32
#ifdef __GNUG__
33
__attribute__ ((format (printf, 1, 2)))
34
#endif
35
std::string ssprintf(
const
char
*format, ...);
36
std::string vssprintf(
const
char
*format, va_list ap);
37
38
std::wstring swsprintf(
const
wchar_t
*format, ...);
39
40
std::wstring vswsprintf(
const
wchar_t
*format, va_list ap);
41
45
std::string
sstrerror
(
int
errnum);
46
}
47
}
48
49
#endif // SSPRINTF_H
Generated on Sat Nov 2 2013 09:06:42 for cwidget by
1.8.1.2