Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> usrdiskblockget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrDiskBlockGet()
------------------------------------------------------------------------------
 Purpose:
 Get the number of disk blocks in use by a user.

 Syntax:
 dwDskBlks = UsrDiskBlockGet( iVolNum, dwUserID )

 Parameters:
 iVolNum  The volume number.
 dwUserID The user's ID number.

 Returns:
 A numeric value (unsigned long int).

 The CA-Clipper name for this function is:
 UsrDskBlkGet()

 Description:
 UsrDiskBlockGet() returns the number of disk blocks in use on volume
 iVolNum by the user specified by ID number dwUserID.

 Returns NOVERRLONG if an error occurs.

 Example:
 // To display the number of blocks in use by WAYNE on volume 0:
 dwBlocksUsed = UsrDiskBlockGet( 0, UsrIDGet( "WAYNE" ) )
 if ( dwBlocksUsed != NOVERRLONG )
    ? "User WAYNE is currently using", dwBlocksUsed,"blocks"
 endif

 Notes:
 The block size normally defaults to 4Kb and varies between 4Kb and
 16Kb depending on the setup of the file server. If the server's configured
 block size is 4Kb (4096) and a user is restricted to 1000 blocks, the
 actual space is 4,096,000 bytes (4Mb).

 The block size in bytes of the specified volume is returned by the function
 VolBlockSizeGet().

See Also: UsrVolumeRestrictGet() / UsrVolumeRestrictSet() UsrDirCountGet() VolBlockSizeGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson