]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/doc/en/getlabel.html
Merge branch 'chan-fatfs' into fatfs-integration
[z180-stamp.git] / fatfs / doc / en / getlabel.html
index 736792fd9b5ada0944aca478fc253dbd4519e9c7..cec65aa6e2de6b486a6102e16bffeb46d7a3bfb4 100644 (file)
@@ -29,7 +29,7 @@ FRESULT f_getlabel (
 <dt>path</dt>\r
 <dd>Pointer to the null-terminated string that specifies the <a href="filename.html">logical drive</a>. Null-string specifies the default drive.</dd>\r
 <dt>label</dt>\r
-<dd>Pointer to the buffer to store the volume label. The buffer size must be at least 12 items. If the volume has no label, a null-string will be returned. Set null pointer if this information is not needed.</dd>\r
+<dd>Pointer to the buffer to store the volume label. The buffer size must be at least 24 items at <tt>_LFN_UNICODE == 0</tt> or 12 items at <tt>_LFN_UNICODE == 1</tt>. If the volume has no label, a null-string will be returned. Set null pointer if this information is not needed.</dd>\r
 <dt>vsn</dt>\r
 <dd>Pointer to the <tt>DWORD</tt> variable to store the volume serial number. Set null pointer if this information is not needed.</dd>\r
 </dl>\r
@@ -60,7 +60,7 @@ FRESULT f_getlabel (
 <div class="para use">\r
 <h4>Example</h4>\r
 <pre>\r
-    char str[12];\r
+    char str[24];\r
 \r
     <span class="c">/* Get volume label of the default drive */</span>\r
     f_getlabel("", str, 0);\r