Structural deformable models
Classes | Functions | Variables
ffind.cpp File Reference
#include <iostream>
#include <string>
#include <list>
#include <libgen.h>
#include <dirent.h>
#include <fnmatch.h>
Include dependency graph for ffind.cpp:

Go to the source code of this file.

Classes

class  FFind
 

Functions

int __fixed_fnmatch (const struct dirent *dent)
 
void perror (const char *errmsg)
 
int main ()
 

Variables

char __fnmatchpattern [2048]
 

Function Documentation

int __fixed_fnmatch ( const struct dirent *  dent)

Definition at line 12 of file ffind.cpp.

Referenced by FFind::find(), and FFind::findFiles().

12  {
13  return !fnmatch(__fnmatchpattern, dent->d_name,0);
14 }
char __fnmatchpattern[2048]
Definition: ffind.cpp:11
int main ( )

Definition at line 61 of file ffind.cpp.

61  {
62  struct dirent **namelist;
63  int n;
64  FFind ff("./*.cpp");
65  ff.findAll();
66 
67  return 0;
68 }
Definition: ffind.cpp:16
void perror ( const char *  errmsg)

Definition at line 57 of file ffind.cpp.

Referenced by FFind::findFiles().

57  {
58  cerr << errmsg << endl;
59 }

Variable Documentation

char __fnmatchpattern[2048]

Definition at line 11 of file ffind.cpp.

Referenced by __fixed_fnmatch(), and FFind::findFiles().