##### Shinobi Library - Memory Card Function

# buIsFormat

Returns whether or not a memory card has been formatted

### FORMAT

`

  Sint32 buIsFormat( drive )
  Sint32 drive

`

### PARAMETER

  `drive` | Extension socket number

### RETURN

  BUD_ERR_OK Disk is formatted

### DESCRIPTION

  Returns whether a not a memory card inserted in an extension socket has been formatted.

  The following values can be designated for the argument `drive` that specifies operand extension sockets.

  BUD_DRIVE_A1 | Extension socket 1 on board A
  BUD_DRIVE_A2 | Extension socket 2 on board A
  BUD_DRIVE_B1 | Extension socket 1 on board B
  BUD_DRIVE_B2 | Extension socket 2 on board B
  BUD_DRIVE_C1 | Extension socket 1 on board C
  BUD_DRIVE_C2 | Extension socket 2 on board C
  BUD_DRIVE_D1 | Extension socket 1 on board D
  BUD_DRIVE_D2 | Extension socket 2 on board D

### EXAMPLE

      switch (buIsFormat(BUD_DRIVE_A1)) {
      	case BUD_ERR_OK:
      		/* Formatted */
      		break;
      	case BUD_ERR_NO_DISK:
      		/* Memory card is not connected */
      		break;
      	case BUD_ERR_BUSY:
      		/* Busy - memory card cound not be checked */
      		break;
      }

buIsFormat

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999