diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-09 19:07:25 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-09 19:07:25 +0200 |
commit | 6518f41b1f96b2bd684c2e37b5ea0002074cc49b (patch) | |
tree | 799f8f502bbfa4c907c0022b63298f58cfc9ae40 /concat.h | |
parent | 5c86bbd67f25815aa9c6c309697df7aea2d80330 (diff) | |
parent | 9b2dc253485ef3a0ac34a5e781bc2c856bec463d (diff) |
Merge branch 'R41z-master'
Diffstat (limited to 'concat.h')
-rw-r--r-- | concat.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/concat.h b/concat.h new file mode 100644 index 0000000..7f2ea46 --- /dev/null +++ b/concat.h @@ -0,0 +1,19 @@ +/* + * 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'; + + va_start(ap, count); + for(i = 0; i < count; i++) + strlcat(concat, va_arg(ap, char *), sizeof(concat)); + va_end(ap); + return; +} |