public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question on coding style in networking code
@ 2001-08-19 16:44 chuckw
  2001-08-20  4:56 ` Alexander Viro
  0 siblings, 1 reply; 4+ messages in thread
From: chuckw @ 2001-08-19 16:44 UTC (permalink / raw)
  To: linux-kernel

Hello All,
	First off, this is probably a straight C question, but here goes...

	I was looking at the kernel code, and in protocol.c the protocol structures are
instansiated and filled.  Now, I have seen/used the following syntax:
	struct x y = { x, y, z };
	
I have not seen the following:
	struct x y = {
		member1: x,
		member2: y,
		member3: z
	};

What is the deal with this?  Does the second way have any advantage over the previous?

Thanks in advance,
Chuck
		

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-20 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-19 16:44 Question on coding style in networking code chuckw
2001-08-20  4:56 ` Alexander Viro
2001-08-19 17:11   ` chuckw
2001-08-20 15:51     ` george anzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox