browse(const char *ipath, const char *ifilter)
{
DIR *dirp;
- int dfd;
- struct dirent *dp;
struct entry *dents;
int i, n, cur;
int r, ret;
cur = 0;
begin:
- /* Path and filter should be malloc(3)-ed strings at all times */
- n = 0;
- dents = NULL;
-
dirp = opendir(path);
if (dirp == NULL) {
printwarn();
for (;;) {
int nlines;
- int maxlen;
int odd;
char *pathnew;
char *name;