summaryrefslogtreecommitdiff
path: root/tools/mail-scan.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-22 16:17:08 -0800
committerJohn Denker <jsd@av8n.com>2012-11-22 16:17:08 -0800
commitccb16252f0f9f55198ca2662ab8daf7199b817de (patch)
tree906b7366ab5c211f0c1a3337172cef8ac105f8a9 /tools/mail-scan.c
parent38d51b1b20776f7435737bf26d2f912daa312282 (diff)
move join() to utils
Diffstat (limited to 'tools/mail-scan.c')
-rw-r--r--tools/mail-scan.c13
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();