Given a username, is there an easy way to convert this to a uid in c/c++. I would hope not to have to look at /etc/passwd?
Thanks