July 30th, 2013, 08:33 AM
Re: Assigning a value to struct variables?
@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...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!