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> usrdircountget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrDirCountGet()
------------------------------------------------------------------------------
 Purpose:
 Get the number of directories owned by a user.

 Syntax:
 dwDirs = UsrDirCountGet( 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:
 UsrDirCntGet()

 Description:
 UsrDirCountGet() returns the number of directories owned on volume
 iVolNum by the user specified by ID number dwUserID.

 Returns NOVERRLONG if an error occurs.

 Example:
 // To display the number of directories owned by user WILLIAM
 // on volume 0:
 dwDirCount = UsrDirCountGet( 0, UsrIDGet( "BILL" ) )
 if ( NWErrorGet() = 0 )
    ? "User BILL owns ", dwDirCount, " directories on volume 0"
 endif

See Also: UsrFileCountGet() UsrDiskBlockGet() UsrVolumeRestrictGet() / UsrVolumeRestrictSet()

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