fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

scandir.c File Reference

#include "flstring.h"
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
Include dependency graph for scandir.c:

Go to the source code of this file.

Defines

#define dirent   direct
#define NAMLEN(dirent)   (dirent)->d_namlen
#define _D_EXACT_NAMLEN(d)   (strlen ((d)->d_name))
#define _D_ALLOC_NAMLEN(d)

Functions

int fl_scandir (const char *dir, struct dirent ***namelist, int(*select)(struct dirent *), int(*compar)(struct dirent **, struct dirent **))

Define Documentation

#define _D_ALLOC_NAMLEN (   d)
Value:
(sizeof (d)->d_name > 1 ? sizeof (d)->d_name : \
                              _D_EXACT_NAMLEN (d) + 1)

Referenced by fl_scandir().

#define _D_EXACT_NAMLEN (   d)    (strlen ((d)->d_name))
#define dirent   direct

Definition at line 34 of file scandir.c.

Referenced by fl_scandir().

#define NAMLEN (   dirent)    (dirent)->d_namlen

Definition at line 35 of file scandir.c.


Function Documentation

int fl_scandir ( const char *  dir,
struct dirent ***  namelist,
int(*)(struct dirent *)  select,
int(*)(struct dirent **, struct dirent **)  compar 
)

Definition at line 48 of file scandir.c.

References _D_ALLOC_NAMLEN, dirent, i, NULL, select(), and void().