view osdep/glob.h @ 25616:042b545d588e

No need to reinvent strdup...
author eugeni
date Mon, 07 Jan 2008 21:06:50 +0000
parents 6ac1ece1f9fe
children 4129c8cfa742
line wrap: on
line source

#ifndef GLOB_H
#define GLOB_H

#include "config.h"

typedef struct {
  size_t gl_pathc;
  char **gl_pathv;
  size_t gl_offs;
} glob_t;

void globfree(glob_t *pglob);

int  glob(const char *pattern, int flags, int (*errfunc)(const char *epath, int eerrno), glob_t *pglob);

#endif /* GLOB_H */