##### Ninja Library - Binary Function

# njCloseBinary

Closes binary file

### FORMAT

`

  void njCloseBinary( *w_buff )
  Sint8 *w_buff

`

### PARAMETER

  `*w_buff` | File read work buffer

### RETURN

  None

### DESCRIPTION

  Closes binary file opened with `njOpenBinary()` function. Frees up the work buffer created for reading a file.

### EXAMPLE

      The following opens NJ file on GD-ROM and reads texture list and model data.
      Sint8 *w_buff;
      Uint32 rtype, rpos = 0;
      NJS_TEXLIST *tlist;
      NJS_OBJECT *obj;
      char *pFilename = "sample.nu";
      w_buff = njOpenBinary(pFilename);
      tlist = (NJS_TEXLIST *)njReadBinary(w_buff, &rpos, &rtype);
      obj = (NJS_OBJECT *)njReadBinary(w_buff, &rpos, &rtype);
      	:
      	:
      syFree(obj);
      syFree(tlist);
      njCloseBinary(w_buff);

### REFERENCE

  `njOpenBinary()
  njReadBinary()
  `

njCloseBinary

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999