nandfind.h
来自「PDA上的CF CARD 文件系统的建立程式」· C头文件 代码 · 共 55 行
H
55 行
#ifndef _NAND_FINDX_H
#define _NAND_FINDX_H
/*************************************************************
Function : NAND_FFS_findfirst
Description:
find the first file that match the requirement
Input:
target - a wildcard that specifies the directory and files to search
ffres - a structure to hold the results of the search
attrib - the target attribute
Output:
0 if a match has been found
-1 if the searching failed
**************************************************************/
int NAND_FFS_findfirst(unsigned char *target, struct ffblk *ffres, int attrib);
int NAND_FFS_findfirst_r(unsigned char *target, struct ffblk *ffres, int attrib);
/*************************************************************
Function : NAND_FFS_findnext
Description:
find the next file that match the requirement
Input:
ffres - a structure to hold the results of the search
Output:
0 if a match has been found
-1 if the searching failed
**************************************************************/
int NAND_FFS_findnext(struct ffblk *ffres);
int NAND_FFS_findnext_r(struct ffblk *ffres);
/*************************************************************
Function : NAND_FFS_findclose
Description:
clean up the memory occupied by the previous search
Input:
ffres - a structure that holds the results of the previous search
Output:
0 SUCCESS
-1 FAILURE
**************************************************************/
int NAND_FFS_findclose(struct ffblk *ffres);
/******************[Internal functions]***********************/
int NAND_FFS_nameCompare(unsigned char *wild, unsigned char *name);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?