getbsize

Determines the user's preferred block size.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  char  *getbsize (
     int    *length,
     long   *block );
  

Parameters

length

(OUT) Points to a location that returns the length of the string.

block

(OUT) Points to a location that returns the block size.

Return Values

Returns a null-terminated string describing the block size, such as “2K blocks”. The length of the string is stored in the length parameter.

Remarks

The getbsize function returns the value stored in the BLOCKSIZE environment variable. If the size stored in this variable is unreasonable, the returned information reflects a block size of 512 bytes.