[C++] Implement wildcard
diff --git a/func.cc b/func.cc
index 2fd95ae..64702ea 100644
--- a/func.cc
+++ b/func.cc
@@ -216,7 +216,13 @@
 }
 
 void WildcardFunc(const vector<Value*>&, Evaluator*, string*) {
-  printf("TODO(wildcard)");
+  shared_ptr<string> pat = args[0]->Eval(ev);
+  for (StringPiece tok : WordScanner(*pat)) {
+    char orig = tok[tok.size()];
+    tok[tok.size()] = '\0';
+    glob(tok.data());
+    tok[tok.size()] = orig;
+  }
 }
 
 void DirFunc(const vector<Value*>&, Evaluator*, string*) {