addpwent(efun)		External Function		addpwent(efun)

NAME
    addpwent - add password entry

SYNOPSIS
    int addpwent(string user,string password);

AVAILABILITY
    privileged efun

DESCRIPTION
    addpwent adds an entry to the user password database. it is
    neccessary that the password (second parameter) is already
    encrypted, since addpwent won't do any encrypting. addpwent
    is used to allocate new users in the database, this function
    cannot be use to modify existing entries, this is done via
    "setpwent" (see there).

    this function may only be called from authorized programs.
    (authorized programs = all programs that live in /secure)
    non-authorized calls will cause a privilege violation exception.

BUGS
    none

RETURN VALUES

    0    attempt to add an entry for an already existing user
    1    no error

SEE ALSO
    getpwent, setpwent, delpwent

Holy Mission MUD	Last change: 14 Apr 1994

