•  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-FileDgetpath()
Dgetdrv()
Dgetcwd()                                                            GEMDOS

Syntax

LONG Dgetcwd( size, drv, path )
char *path;
WORD drv, size;

Function      Dgetcwd() returns the processes' current working directory
              for the specified drive.

Opcode        315 (0x13B)

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

Parameters    path is a pointer to a buffer with room for at least size
              characters into which will be copied the complete working
              path of drive drv.

Binding       pea      path
              move.w   drv,-(sp)
              move.w   size,-(sp)
              move.w   #$13B,-(sp)
              trap     #1
              lea      10(sp),sp


Return Value  Dgetcwd() returns 0 if successful or a GEMDOS error code
              otherwise.

See Also      Dgetpath(), Dgetdrv()