a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Resources:
 disk.resource
  AllocUnit
  FreeUnit
  GetUnit
  GetUnitID
  GiveUnit
  ReadUnitID
Include
GuruMeditation
Docs » Autodocs » disk.resource » AllocUnit

NAME

       AllocUnit - allocate a unit of the disk

SYNOPSIS

       Success = AllocUnit( unitNum ), DRResource
D0 D0 A6
BOOL AllocUnit(LONG);

FUNCTION

	This routine allocates one of the units of the disk.  It should
be called before trying to use the disk (via GetUnit).
In reality, it is perfectly fine to use GetUnit/GiveUnit if AllocUnit
fails. Do NOT call FreeUnit if AllocUnit did not succeed. This
has been the case for all revisions of disk.resource.

INPUTS

	unitNum -- a legal unit number (zero through three)

RESULT

	Success -- nonzero if successful.  zero on failure.
EXCEPTIONS

SEE ALSO

BUGS

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Dual Crew

RZR
TRSI
RSI
DC

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se