¡@

Home 

c++ Programming Glossary: fpath

C++ lambda with captures as a function pointer

http://stackoverflow.com/questions/7852101/c-lambda-with-captures-as-a-function-pointer

using namespace std int main auto callback const char fpath const struct stat sb int typeflag int cout fpath endl return.. char fpath const struct stat sb int typeflag int cout fpath endl return 0 int ret ftw etc callback 1 return ret After modifying.. int main vector string entries auto callback const char fpath const struct stat sb int typeflag int entries.push_back fpath..

recursive folder scanning in c++

http://stackoverflow.com/questions/983376/recursive-folder-scanning-in-c

.jpg .jpeg .gif .png static int callback const char fpath const struct stat sb int typeflag if it's a file if typeflag.. if the filename matches the filter if fnmatch filters i fpath FNM_CASEFOLD 0 do something printf found image s n fpath .. fpath FNM_CASEFOLD 0 do something printf found image s n fpath break tell ftw to continue return 0 int main ftw . callback..