diff options
author | John Denker <jsd@av8n.com> | 2012-11-22 16:17:08 -0800 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-11-22 16:17:08 -0800 |
commit | ccb16252f0f9f55198ca2662ab8daf7199b817de (patch) | |
tree | 906b7366ab5c211f0c1a3337172cef8ac105f8a9 /tools/mail-scan.c | |
parent | 38d51b1b20776f7435737bf26d2f912daa312282 (diff) |
move join() to utils
Diffstat (limited to 'tools/mail-scan.c')
-rw-r--r-- | tools/mail-scan.c | 13 |
1 files changed, 1 insertions, 12 deletions
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<string> stuff){ - string rslt; - if (!stuff.size()) return rslt; - list<string>::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(); |