getwd.asm
bitfixer_bitfixer/dg/z88dk/libsrc/fcntl/sprinter/getwd.asm
;	Sprinter fcntl library
;
;	$Id: getwd.asm,v 1.2 2015/01/19 01:32:43 pauloscustodio Exp $
;


                PUBLIC   getwd

;int getwd(char *buf);
; NB buf must be at least 256 bytes


.getwd	
	pop	bc
	pop	hl
	push	hl
	push	bc
	push	hl
	ld	c,$1E	;CURDIR
	rst	$10
	pop	hl
	ret	nc
	ld	hl,0	;error
	ret

