[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Problem in one program...
- From: "Scott." <scottf scs unr edu>
- To: gtk-app-devel-list redhat com
- Subject: Re: Problem in one program...
- Date: Mon, 9 Aug 1999 07:06:42 -0700 (PDT)
On Mon, 9 Aug 1999, Bryan Wilkinson wrote:
> getpwent() uses a single passwd structure, when you make successive calls
> to it, the pointer returned from the previous call points to the newly
> updated passwd structure, this is why you are getting multiple copies of
> the same structure. you will need to make a function to copy the fields of
> the passwd structure.
Bryan,
i went through this same thing when writing gUserman. i wrote quite a few
helper functions (copy_passwd, create_passwd, etc...) for handling passwd
entries, and if you're still having problems, you can take a look through
there. there's group helpers too.
http://www.scs.unr.edu/~scottf/guserman
-=Scott
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]