File: read_dir.h

package info (click to toggle)
xppaut 6.11b%2B1.dfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 13,504 kB
  • sloc: ansic: 91,694; makefile: 167
file content (24 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _read_dir_h_
#define _read_dir_h_


typedef struct {
  char **dirnames,**filenames;
  int nfiles,ndirs;
} FILEINFO;


void free_finfo(FILEINFO *ff);
int cmpstringp(const void *p1, const void *p2);
int get_fileinfo_tab(char *wild, char *direct, FILEINFO *ff);
int get_fileinfo(char *wild, char *direct, FILEINFO *ff);
int fil_count(char *direct, int *ndir, int *nfil, char *wild, int *mld, int *mlf);
int change_directory(char *path);
int get_directory(char *direct);
int IsDirectory(char *root, char *path);
void MakeFullPath(char *root, char *filename, char *pathname);
int wild_match(char *string, char *pattern);



#endif