•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileDreadlabel()
Dwritelabel()                                                        GEMDOS

Syntax

LONG Dwritelabel( name, label )
char *name;
char *label;

Function      Dwritelabel() sets a label for the specified filesystem.

Opcode        339 (0x0153)

Availability  Available when a 'MiNT' cookie with a version of at least
              1.12 exists.

Parameters    name 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 Value  Dwritelabel() returns E_OK on success or a negative GEMDOS
              error code otherwise.

Comments      Not all filesystems understand the concept of a disk label.

Caveats       Prior to MiNT version 1.14.5 this call contained a bug that
              allowed the label to be changed by all users.

See Also      Dreadlabel()