From d3d8b8ee03a773b7f2cd1aad16ee43d9784e5139 Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Sun, 4 Sep 2016 00:10:49 +0300 Subject: added daemonization support --- concat.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 concat.h (limited to 'concat.h') diff --git a/concat.h b/concat.h new file mode 100644 index 0000000..9f138d7 --- /dev/null +++ b/concat.h @@ -0,0 +1,19 @@ +/* + * Thanks to lloyd for contribution + */ + +extern char concat[4096]; + +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; +} -- cgit v1.2.3 From 1654efe1d67d0bec010792e8c6eb64a0f8e88a58 Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Mon, 5 Sep 2016 00:56:22 +0300 Subject: config.mk cleanup --- concat.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 concat.h (limited to 'concat.h') diff --git a/concat.h b/concat.h deleted file mode 100644 index 9f138d7..0000000 --- a/concat.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Thanks to lloyd for contribution - */ - -extern char concat[4096]; - -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; -} -- cgit v1.2.3 From 2afea979877ae12226ab397355f3bf8c8e124e91 Mon Sep 17 00:00:00 2001 From: "Ali H. Fardan" Date: Thu, 8 Sep 2016 04:31:49 +0300 Subject: used ccat() from concat.h for string concatenation --- concat.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 concat.h (limited to 'concat.h') 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; +} -- cgit v1.2.3