diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-17 18:07:03 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-17 18:07:03 +0200 |
commit | 37959ca569a4bf69c6c1bbb16991cfc6d8452970 (patch) | |
tree | 9554e8d808f72b39bd66c512aff96aa2d5292de3 /extern/concat.h | |
parent | d73118eaa47a9c4ea9ac9860b3d8b6e4c7c388dc (diff) | |
download | slstatus-37959ca569a4bf69c6c1bbb16991cfc6d8452970.tar.gz |
moved headers to extern
Diffstat (limited to 'extern/concat.h')
-rw-r--r-- | extern/concat.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/extern/concat.h b/extern/concat.h new file mode 100644 index 0000000..7f2ea46 --- /dev/null +++ b/extern/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; +} |