Why should structure names have a typedef?

Posted by Jay on Stack Overflow See other posts from Stack Overflow or by Jay
Published on 2010-04-09T07:15:04Z Indexed on 2010/04/09 7:23 UTC
Read the original article Hit count: 204

Filed under:
|
|

I have seen source codes always having a typedef for a structure and using the same everywhere instead of using the structure name as "struct sname" etc directly?

What is the reason behind this? Are there any advantages in doing this?

© Stack Overflow or respective owner

Related posts about c

    Related posts about structures