<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[c语言struct的一种初始化方法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 21 Nov 2007 03:13:27 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	c语言struct的一种初始化方法<br/>在linux的内核代码中几乎都是用这种方法的<br/>#include &lt;stdio.h&gt;<br/>typedef struct str<br/>{<br/> &nbsp; &nbsp; &nbsp; &nbsp;int a;<br/> &nbsp; &nbsp; &nbsp; &nbsp;int b;<br/> &nbsp; &nbsp; &nbsp; &nbsp;char name[20];<br/>}Str;<br/><br/>int main()<br/>{<br/> &nbsp; &nbsp; &nbsp; &nbsp;Str s={a:1,b:2,name:&quot;xiangdong&quot;};//注意这里的冒号<br/> &nbsp; &nbsp; &nbsp; &nbsp;printf(&quot;a=%d&#92;nb=%d&#92;nname=%s&#92;n&quot;,s.a,s.b,s.name);<br/>}<br/><br/><br/><br/><br/>原文是在linux内核2.4.18的linux/fs/ext2/super.c文件里的，如下：<br/>static struct super_operations ext2_sops = {<br/> &nbsp; &nbsp; &nbsp;read_inode: &nbsp;ext2_read_inode,<br/> &nbsp; &nbsp; &nbsp;write_inode: ext2_write_inode,<br/> &nbsp; &nbsp; &nbsp;put_inode: &nbsp; ext2_put_inode,<br/> &nbsp; &nbsp; &nbsp;delete_inode:ext2_delete_inode,<br/> &nbsp; &nbsp; &nbsp;put_super: &nbsp; ext2_put_super,<br/> &nbsp; &nbsp; &nbsp;write_super: ext2_write_super,<br/> &nbsp; &nbsp; &nbsp;statfs: &nbsp; &nbsp; &nbsp;ext2_statfs,<br/> &nbsp; &nbsp; &nbsp;remount_fs: &nbsp;ext2_remount,<br/>};<br/>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] c语言struct的一种初始化方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>