@2kaud: Sorry, can you please explain this line:

if (char *nl = strrchr(acct.name, '\n')) *nl = 0;

I haven't used that many libraries yet, except for stdio/stdlib/math, so please excuse me. And I'm really confused about the pointers (*). Can I get a layman explanation from you, 2kaud? All the stuff I've read so far can be a little bit too confusing for a beginner like me, unfortunately...