X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/5366852335044c1e68a5c32548d3051cc943552f..5013b94fb43ed4e86efb5d1d72350537cd1a3f8f:/fatfs/doc/ja/findfirst.html diff --git a/fatfs/doc/ja/findfirst.html b/fatfs/doc/ja/findfirst.html new file mode 100644 index 0000000..c788768 --- /dev/null +++ b/fatfs/doc/ja/findfirst.html @@ -0,0 +1,110 @@ + + +
+ + + + + +ãã£ã¬ã¯ããªå ã®ãªãã¸ã§ã¯ãã®æ¤ç´¢ãéå§ãã¾ãã
++FRESULT f_findfirst ( + DIR* dp, /* [OUT] ãã£ã¬ã¯ã㪠ãªãã¸ã§ã¯ãæ§é ä½ã¸ã®ãã¤ã³ã¿ */ + FILINFO* fno, /* [OUT] ãã¡ã¤ã«æ å ±æ§é ä½ã¸ã®ãã¤ã³ã¿ */ + const TCHAR* path, /* [IN] ãã£ã¬ã¯ããªåã¸ã®ãã¤ã³ã¿ */ + const TCHAR* pattern /* [IN] ããã ãã¿ã¼ã³æååã¸ã®ãã¤ã³ã¿ */ +); ++
+FR_OK, +FR_DISK_ERR, +FR_INT_ERR, +FR_NOT_READY, +FR_NO_PATH, +FR_INVALID_NAME, +FR_INVALID_OBJECT, +FR_INVALID_DRIVE, +FR_NOT_ENABLED, +FR_NO_FILESYSTEM, +FR_TIMEOUT, +FR_NOT_ENOUGH_CORE, +FR_TOO_MANY_OPEN_FILES +
+pathã§æå®ããããã£ã¬ã¯ããªãéãããã®ãã£ã¬ã¯ããªå ã®é ç®ã®æ¤ç´¢ãéå§ãã¾ããæ£å¸¸çµäºããã¨ããã£ã¬ã¯ã㪠ãªãã¸ã§ã¯ãæ§é ä½ãä½æãããæåã«æ¤ç´¢åæååã«ååããããããé ç®ã®æ å ±ãfnoã®æå®ãããã¡ã¤ã«æ å ±æ§é ä½ã«ã¹ãã¢ããã¾ããååã®ãããããé ç®ãè¦ã¤ãããªãã£ãå ´åã¯ãfno->fname[]ã«ãã«æååãè¿ããã¾ãããã¡ã¤ã«æ å ±æ§é ä½ã®ä½¿ãæ¹ã«ã¤ãã¦ã¯ãf_readdiré¢æ°ãåç §ãã¦ãã ããã
+ããã ãã¿ã¼ã³æååã¯ãã¯ã¤ã«ãã«ã¼ãæå(?ã¨*)ãå«ããã¨ãã§ãã¾ãã?ã¯ä»»æã®1æåã«ã*ã¯0æå以ä¸ã®ä»»æã®æååã«ããããã¾ããLFNæ§æã§ã¯ã_USE_FIND = 1ã®ã¨ãfname[]ã®ã¿ãã¹ããã_USE_FIND = 2ã®ã¨ãã¯altname[]ããã¹ããã¾ããç¾ãªãã¸ã§ã³ã§ã¯ãã¿ã¼ã³ ãããã³ã°ã«ããã¦æ¬¡ã®ç¹ã§æ¨æºã·ã¹ãã ã¨ã¯ç°ãªãåä½ã¨ãªãã¾ãã
+ãã®é¢æ°ã¯ãf_opendiré¢æ°ããã³f_readdiré¢æ°ã®ã©ããã¼é¢æ°ã§ãã_USE_FIND >= 1ã§ããã¤_FS_MINIMIZE <= 1ã®ã¨ã使ç¨å¯è½ã«ãªãã¾ãã
++/* ãã£ã¬ã¯ããªå ã®ãªãã¸ã§ã¯ãã®æ¤ç´¢ã¨è¡¨ç¤º */ + +void find_image (void) +{ + FRESULT fr; /* APIæ»ãå¤ */ + DIR dj; /* ãã£ã¬ã¯ã㪠ãªãã¸ã§ã¯ã */ + FILINFO fno; /* ãã¡ã¤ã«æ å ± */ + + fr = f_findfirst(&dj, &fno, "", "dsc*.jpg"); /* "dsc"ã§å§ã¾ãJPEGãã¡ã¤ã«ãæ¤ç´¢ */ + + while (fr == FR_OK && fno.fname[0]) { /* è¦ã¤ããéç¹°ãè¿ã */ + printf("%s\n", fno.fname); /* è¦ã¤ããé ç®ã®ååã表示 */ + fr = f_findnext(&dj, &fno); /* 次ãæ¤ç´¢ */ + } + f_closedir(&dj); +} ++