directls.h

来自「掌握如何用C来实现各种算法」· C头文件 代码 · 共 33 行

H
33
字号
/*****************************************************************************
*                                                                            *
*  ------------------------------ directls.h ------------------------------  *
*                                                                            *
*****************************************************************************/

#ifndef DIRECTLS_H
#define DIRECTLS_H

#include <dirent.h>

/*****************************************************************************
*                                                                            *
*  Define a structure for directory entries.                                 *
*                                                                            *
*****************************************************************************/

typedef struct Directory_ {

char               name[MAXNAMLEN + 1];

} Directory;

/*****************************************************************************
*                                                                            *
*  --------------------------- Public Interface ---------------------------  *
*                                                                            *
*****************************************************************************/

int directls(const char *path, Directory **dir);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?