libdragon
dir.h
Go to the documentation of this file.
1
6#ifndef __LIBDRAGON_DIR_H
7#define __LIBDRAGON_DIR_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
23#define DT_REG 1
25#define DT_DIR 2
31typedef struct
32{
34 char d_name[256];
36 int d_type;
37} dir_t;
38
41int dir_findfirst( const char * const path, dir_t *dir );
42int dir_findnext( const char * const path, dir_t *dir );
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif
int d_type
The type of the directory entry. See DT_REG and DT_DIR.
Definition: dir.h:36
int dir_findnext(const char *const path, dir_t *dir)
Find the next file in a directory.
Definition: system.c:1270
int dir_findfirst(const char *const path, dir_t *dir)
Find the first file in a directory.
Definition: system.c:1235
Directory entry structure.
Definition: dir.h:32