2 * "THE BEER-WARE LICENSE" (Revision 42):
3 * <tobias.rehbein@web.de> wrote this file. As long as you retain this notice
4 * you can do whatever you want with this stuff. If we meet some day, and you
5 * think this stuff is worth it, you can buy me a beer in return.
9 #define _POSIX_C_SOURCE 199506
18 tools_catitems(char *outbuf
, size_t outbuflen
,...)
24 assert(outbuf
!= NULL
);
30 ep
= op
+ outbuflen
- 1;
32 va_start(ap
, outbuflen
);
33 while ((ip
= va_arg(ap
, char *)) != NULL
) {
34 while (*ip
!= '\0' && op
< ep
) {
41 ccount
= op
- outbuf
+ 1;
42 assert(ccount
<= outbuflen
);