X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/b4e3fab85fcd9f5b1502ec991c81302b910492d3:/fatfs/doc/en/findfirst.html..0f3b947bda5f34662a611272b9f12199e0da9aca:/fatfs/documents/doc/findfirst.html diff --git a/fatfs/doc/en/findfirst.html b/fatfs/documents/doc/findfirst.html similarity index 80% rename from fatfs/doc/en/findfirst.html rename to fatfs/documents/doc/findfirst.html index 61670ae..daa6de6 100644 --- a/fatfs/doc/en/findfirst.html +++ b/fatfs/documents/doc/findfirst.html @@ -30,7 +30,7 @@ FRESULT f_findfirst (
dp
Pointer to the blank directory object.
fno
-
Pointer to the file information structure to store the information about the found item.
+
Pointer to the file information structure to store the information about the found item.
path
Pointer to the null-terminated string that specifies the directory name to be opened.
pattern
@@ -61,19 +61,19 @@ FRESULT f_findfirst (

Description

-

After the directory specified by path could be opened, it starts to search the directory for items with the name specified by pattern. If the first item is found, the information about the object is stored into the file information structure. For more information about file information structure, refer to f_readdir function.

-

The matching pattern can contain wildcard characters (? and *). A ? matches an any character and an * matches an any string in length of zero or longer. When support of long file name is enabled, only fname[] is tested at _USE_FIND == 1 and also altname[] is tested at _USE_FIND == 2. In this revision, there are some differences listed below between FatFs and standard systems in matching condition.

+

After the directory specified by path could be opened, it starts to search the directory for items with the name specified by pattern. If the first item is found, the information about the object is stored into the file information structure fno.

+

The matching pattern can contain wildcard characters (? and *). A ? matches an any character and an * matches an any string in length of zero or longer. When support of long file name is enabled, only fname[] is tested at FF_USE_FIND == 1 and also altname[] is tested at FF_USE_FIND == 2. In this revision, there are some differences listed below between FatFs and standard systems in matching condition.

QuickInfo

-

This is a wrapper function of f_opendir and f_readdir function. Available when _USE_FIND >= 1 and _FS_MINIMIZE <= 1.

+

This is a wrapper function of f_opendir and f_readdir function. Available when FF_USE_FIND >= 1 and FF_FS_MINIMIZE <= 1.

@@ -82,18 +82,19 @@ FRESULT f_findfirst (
 /* Search a directory for objects and display it */
 
-void find_image (void)
+void find_image_file (void)
 {
     FRESULT fr;     /* Return value */
     DIR dj;         /* Directory search object */
     FILINFO fno;    /* File information */
 
-    fr = f_findfirst(&dj, &fno, "", "dsc*.jpg");  /* Start to search for photo files */
+    fr = f_findfirst(&dj, &fno, "", "dsc*.jpg");  /* Start to search for photo files */
 
     while (fr == FR_OK && fno.fname[0]) {         /* Repeat while an item is found */
         printf("%s\n", fno.fname);                /* Display the object name */
         fr = f_findnext(&dj, &fno);               /* Search for next item */
     }
+
     f_closedir(&dj);
 }