[lkml]   [2001]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectQuestion on coding style in networking code
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,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.064 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site