Dwritelabel()

LONG Dwritelabel( name, label )

char *name;
char *label;
Dwritelabel() sets a label for the specified filesystem.
Opcode339 (0x0153)
AvailabilityAvailable when a 'MiNT' cookie with a version of at least 1.12 exists.
Parametersname is a path pointing to the disk to write the label to.

label is a pointer to a memory buffer containing the new label.

Binding
pea	label
pea	name
move.w	#$0153,-(sp)
trap	#1
lea	$0a(sp),sp
Return ValueDwritelabel() returns E_OK on success or a negative GEMDOS error code otherwise.
CaveatsPrior to MiNT version 1.14.5 this call contained a bug that allowed the label to be changed by all users.
CommentsNot all filesystems understand the concept of a disk label.
See Also Dreadlabel()