From ccb16252f0f9f55198ca2662ab8daf7199b817de Mon Sep 17 00:00:00 2001 From: John Denker Date: Thu, 22 Nov 2012 16:17:08 -0800 Subject: move join() to utils --- tools/mail-scan.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'tools/mail-scan.c') diff --git a/tools/mail-scan.c b/tools/mail-scan.c index 3100ab6..0ed7465 100644 --- a/tools/mail-scan.c +++ b/tools/mail-scan.c @@ -80,18 +80,6 @@ void exeunt(const int sts){ exit(sts); } -string join(const string sep, list stuff){ - string rslt; - if (!stuff.size()) return rslt; - list::const_iterator ptr = stuff.begin(); - rslt = *ptr++; - for (; ptr != stuff.end(); ptr++){ - rslt += sep; - rslt += *ptr; - } - return rslt; -} - class watcher { public: string key; @@ -115,6 +103,7 @@ public: } }; + //////////////////////////////////////////////////////////// int main(int _argc, const char** _argv){ //// pid_t pid = getpid(); -- cgit v1.2.3