HELPLIB.HLB  —  CRTL  getpwnam  Arguments
 name

    The name of the user for which the attributes are to be read.

 pwd

    The address of a passwd structure into which the function writes
    its results.

 buffer

    A working buffer for the result argument that is able to hold the
    largest entry in the passwd structure. Storage referenced by the
    passwd structure is allocated from the memory provided with the
    buffer argument, which is bufsize characters in length.

 bufsize

    The length of the character array that buffer points to.

 result

    Upon successful return, is set to pwd. Upon unsuccessful return,
    the result is set to NULL.

  . . .

    An optional argument that can be either 1 or 0. If you specify
    1, the directory specification is returned in OpenVMS format. If
    you specify 0, the directory specification (pathname) is returned
    in UNIX style format. If you omit this argument, the function
    returns the directory specification according to your current
    command-language interpreter.
Close Help