-
July 30th, 2013, 08:33 AM
#16
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|