SearchRec Structure

Microchip MDD File System Interface

MDDFS Interface Library Help
SearchRec Structure
C
typedef struct {
  char filename[FILE_NAME_SIZE + 2];
  unsigned char attributes;
  unsigned long filesize;
  unsigned long timestamp;
  unsigned int entry;
  char searchname[FILE_NAME_SIZE + 2];
  unsigned char searchattr;
  unsigned int cwdclus;
  unsigned char initialized;
} SearchRec;
Description

The SearchRec structure is used when searching for file on a device. It contains parameters that will be loaded with file information when a file is found. It also contains the parameters that the user searched for, allowing further searches to be perfomed in the same directory for additional files that meet the specified criteria.

Members
Members 
Description 
char filename[FILE_NAME_SIZE + 2]; 
The name of the file that has been found 
unsigned char attributes; 
The attributes of the file that has been found 
unsigned long filesize; 
The size of the file that has been found 
unsigned long timestamp; 
The last modified time of the file that has been found (create time for directories) 
unsigned int entry; 
The directory entry of the last file found that matches the specified attributes. (Internal use only) 
char searchname[FILE_NAME_SIZE + 2]; 
The name specified when the user began the search. (Internal use only) 
unsigned char searchattr; 
The attributes specified when the user began the search. (Internal use only) 
unsigned int cwdclus; 
The directory that this search was performed in. (Internal use only) 
unsigned char initialized; 
Check to determine if the structure was initialized by FindFirst (Internal use only) 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.