Xinqi Bao's Git
projects
/
slstatus.git
/ blob
summary
|
log
|
commit
|
diff
|
tree
history
|
raw
|
HEAD
coding style fixes
[slstatus.git]
/
concat.h
1
/*
2
* Thanks to lloyd for contribution
3
*/
4
5
extern
char
concat
[
8192
];
6
7
extern
void
8
ccat
(
const unsigned short int
count
, ...)
9
{
10
va_list
ap
;
11
unsigned short int
i
;
12
concat
[
0
] =
'\0'
;
13
14
va_start
(
ap
,
count
);
15
for
(
i
=
0
;
i
<
count
;
i
++)
16
strlcat
(
concat
,
va_arg
(
ap
,
char
*),
sizeof
(
concat
));
17
va_end
(
ap
);
18
return
;
19
}