Home Libraries Author Links

recurs.h File Reference


Detailed Description

Specification of data types and functions for recursing directory trees or traversing directory chains.

Version:
1.08-r51
Date:
2007-08-20 15:08:00 (Tom)
Author:
Tom Michaelis
SysToMath
Wittelsbacherstr. 7
D-80469 Munich
Contact:
http://www.SysToMath.com
mailto:Tom.Michaelis@SysToMath.com
This C header file contains declarations of data types and functions specifying recursing directory trees and traversing directory chains. They are implemented in the C program file recurs.c belonging to the SysToMath Base C Library stmbase.

Definition in file recurs.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define stmRecurs   stmRecurse
 Alternative name for stmRecurse().

Typedefs

typedef int StmRecursUsrFctType (const char *dirname, const char *entryname, const struct stat *direntry, int status, void *data, size_t len)
 User function type for the pusrfct arguments of stmRecurse() and stmTraverse().

Enumerations

enum  StmRecursFlags {
  StmRecursFollowLinks = 0x00000001,
  StmRecursDoNotRecurse = 0x00000002
}
 Constants used for the flags argunment of stmRecurse(). More...
enum  StmRecursStatus {
  StmRecursLeaf,
  StmRecursDbeg,
  StmRecursDend,
  StmRecursDns
}
 Constants used for the status argument of the user function referenced by the pusrfct parameter of stmRecurse() and stmTraverse(). More...

Functions

int stmRecurse (const char *root, StmRecursUsrFctType *pusrfct, void *data, size_t len, StmDword flags)
 Recurse the directory tree spanned by the directory root calling a user function for each file system element visited.
int stmTraverse (const char *root, const char *path, StmRecursUsrFctType *pusrfct, void *data, size_t len)
 Traverse the directory chain from the directory root to its descendant directory path.

Variables

StmBool stmRecursDebug
 Debug flag.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).