mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-30 15:25:41 +00:00
23 lines
340 B
C
23 lines
340 B
C
/*
|
|
* Thanks to lloyd for contribution
|
|
*/
|
|
|
|
extern char concat[8192];
|
|
|
|
extern void
|
|
ccat(const unsigned short int count, ...)
|
|
{
|
|
va_list ap;
|
|
unsigned short int i;
|
|
concat[0] = '\0';
|
|
|
|
if (count == 0)
|
|
return;
|
|
|
|
va_start(ap, count);
|
|
for(i = 0; i < count; i++)
|
|
strlcat(concat, va_arg(ap, char *), sizeof(concat));
|
|
va_end(ap);
|
|
return;
|
|
}
|