X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/5366852335044c1e68a5c32548d3051cc943552f..5013b94fb43ed4e86efb5d1d72350537cd1a3f8f:/fatfs/doc/ja/stat.html diff --git a/fatfs/doc/ja/stat.html b/fatfs/doc/ja/stat.html index 5337f34..deba89b 100644 --- a/fatfs/doc/ja/stat.html +++ b/fatfs/doc/ja/stat.html @@ -1,7 +1,7 @@
- + @@ -13,28 +13,28 @@t@CܽÍTuEfBNg̶Ýð²×Aܽ»Ìîñð澵ܷB
+ãã¡ã¤ã«ã¾ãã¯ãµã ãã£ã¬ã¯ããªã®åå¨ã調ã¹ãã¾ããã®æ å ±ãåå¾ãã¾ãã
FRESULT f_stat ( - const TCHAR* path, /* [IN] IuWFNg¼ÖÌ|C^ */ - FILINFO* fno /* [OUT] t@Cîñ\¢ÌÖÌ|C^ */ + const TCHAR* path, /* [IN] ãªãã¸ã§ã¯ãåã¸ã®ãã¤ã³ã¿ */ + FILINFO* fno /* [OUT] ãã¡ã¤ã«æ å ±æ§é ä½ã¸ã®ãã¤ã³ã¿ */ );
FR_OK, FR_DISK_ERR, @@ -53,22 +53,58 @@ FRESULT f_stat (
wè³ê½t@CܽÍTuEfBNg̶Ýð²×Ü·B¶ÝµÈ¢êÍAFR_NO_FILEªAèÜ·B¶Ý·éêÍFR_OKªAèAt@Cîñ\¢ÌÉ»êÖ·éîñ(TCYA^CX^vA®«¨æÑZ¢t@C¼)ªXgA³êÜ·B
+æå®ããããã¡ã¤ã«ã¾ãã¯ãµã ãã£ã¬ã¯ããªã®åå¨ã調ã¹ã¾ããåå¨ããªãå ´åã¯ãFR_NO_FILEã帰ãã¾ããåå¨ããå ´åã¯FR_OKã帰ããããé¢ããæ å ±(ãµã¤ãºãã¿ã¤ã ã¹ã¿ã³ãããã³å±æ§)ããã¡ã¤ã«æ å ±æ§é ä½ã«ã¹ãã¢ããã¾ãã
_FS_MINIMIZE == 0ÌÆ«ÉgpÂ\Å·B
+_FS_MINIMIZE == 0ã®ã¨ãã«ä½¿ç¨å¯è½ã§ãã
++ FRESULT fr; + FILINFO fno; + + + printf("Test for 'file.txt'...\n"); + + fr = f_stat("file.txt", &fno); + switch (fr) { + + case FR_OK: + printf("Size: %lu\n", fno.fsize); + printf("Timestamp: %u/%02u/%02u, %02u:%02u\n", + (fno.fdate >> 9) + 1980, fno.fdate >> 5 & 15, fno.fdate & 31, + fno.ftime >> 11, fno.ftime >> 5 & 63); + printf("Attributes: %c%c%c%c%c\n", + (fno.fattrib & AM_DIR) ? 'D' : '-', + (fno.fattrib & AM_RDO) ? 'R' : '-', + (fno.fattrib & AM_HID) ? 'H' : '-', + (fno.fattrib & AM_SYS) ? 'S' : '-', + (fno.fattrib & AM_ARC) ? 'A' : '-'); + break; + + case FR_NO_FILE: + printf("It is not exist.\n"); + break; + + default: + printf("An error occured. (%d)\n", fr); + } +