in reply to Formatting output

This has nothing to do with your output format question, but I'd suggest a look at getpwent. Output format can also be done with printf and sprintf, which may be more comfortable for C programmers.

After Compline,
Zaxo