by anychance is there a grep like function in c, what ive done is made it so it out puts to a file like this
username:uid:gid
for all users on the machine so there is a point of refrence for the program, but it would be much easier if i could grep a line and then have the code parse it store the uid and gid in different variables and pass it to chown.