FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
string Tools::Format
(
const char *
fmt
,
va_list &
ap
)
Definition at line
21
of file
tools.cc
.
References
str
.
Referenced by
Form()
.
22
{
23
int
n=256;
24
25
char
*ret=0;
26
while
(1)
27
{
28
ret =
new
char
[n+1];
29
30
const
int
sz = vsnprintf(ret, n, fmt, ap);
31
if
(sz<=n)
32
break
;
33
34
n *= 2;
35
delete
[] ret;
36
};
37
38
string
str
(ret);
39
40
delete
[] ret;
41
42
return
str
;
43
}
str
char str[80]
Definition:
test_client.c:7
Here is the caller graph for this function:
Tools
Generated on Sun Sep 18 2016 20:51:06 for FACT++ by
1.8.11