X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/b4e3fab85fcd9f5b1502ec991c81302b910492d3:/fatfs/doc/en/setlabel.html..0f3b947bda5f34662a611272b9f12199e0da9aca:/fatfs/documents/doc/setlabel.html diff --git a/fatfs/doc/en/setlabel.html b/fatfs/documents/doc/setlabel.html similarity index 59% rename from fatfs/doc/en/setlabel.html rename to fatfs/documents/doc/setlabel.html index f7a8b0e..c50db18 100644 --- a/fatfs/doc/en/setlabel.html +++ b/fatfs/documents/doc/setlabel.html @@ -1,7 +1,7 @@ - + @@ -49,19 +49,20 @@ FRESULT f_setlabel (

Description

-

When the string has a drive number, the volume label will be set to the volume specified by the drive number. If not, the volume label will be set to the default drive. If length of the given volume label is zero, the volume label on the volume will be removed. The format of the volume label on the FAT volume is similar to the file name but there are some differences shown below:

+

When the string has a drive prefix, the volume label will be set to the volume specified by the drive prefix. Unix style volume ID cannot be used to specify the volume. If drive number is not specified, the volume label will be set to the default drive. If length of the given volume label is zero, the volume label on the volume will be removed. The format of the volume label is as shown below:

-

Remark: The standard system (Windows) has a problem at handling of the volume label with a heading \xE5 on the FAT volume. To avoid this problem, this function rejects such volume label as invalid name.

+

Remark: The standard system (Windows) has a problem at the volume label with a heading \xE5 on the FAT volume. To avoid this problem, this function rejects such volume label as invalid name.

QuickInfo

-

Available when _FS_READONLY == 0 and _USE_LABEL == 1.

+

Available when FF_FS_READONLY == 0 and FF_USE_LABEL == 1.

@@ -69,13 +70,13 @@ FRESULT f_setlabel (

Example

     /* Set volume label to the default drive */
-    f_setlabel("DATA DISK");
+    f_setlabel("DATA DISK");
 
     /* Set volume label to the drive 2 */
-    f_setlabel("2:DISK 3 OF 4");
+    f_setlabel("2:DISK 3 OF 4");
 
     /* Remove volume label of the drive 2 */
-    f_setlabel("2:");
+    f_setlabel("2:");