<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.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://www.jackxiang.com/post//</link>
<title><![CDATA[sprintf函数使用---该函数必须包含includestdio.h,strlen必须包含：#include string.h ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 15 Jun 2010 02:40:18 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code">sprintf missing function-prototype&nbsp;&nbsp;：<br/>sprintf函数使用---该函数必须包含include&lt;stdio.h&gt;</div><br/><br/>在C51中直接使用printf比自己编个串口发送字符串的函数方便，但有几个问题要注意的。<br/><br/>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用printf之前要先包含stdio.h这个头文件<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;stdio.h&gt;<br/><br/>具体stdio.h包含的函数见下面网址<br/><br/>http://www.keil.com/support/man/docs/c51/c51_stdio_h.htm<br/><br/><br/>------------------------------------------------------------------------------------------------------------------------------------------------------<br/>strlen<br/>Summary&nbsp;&nbsp; #include &lt;string.h&gt;<br/><br/>int strlen (<br/>&nbsp;&nbsp;char *src);&nbsp;&nbsp; /* source string */<br/><br/> <br/>Description&nbsp;&nbsp; The strlen function calculates the length, in bytes, of src. This calculation does not include the null terminating character.&nbsp;&nbsp;<br/>Return Value&nbsp;&nbsp; The strlen function returns the length of src.&nbsp;&nbsp;<br/>See Also&nbsp;&nbsp; strcat, strncat, strncpy&nbsp;&nbsp;<br/>Example&nbsp;&nbsp; #include &lt;string.h&gt;<br/><br/><div class="code">#include &lt;stdio.h&gt; /* for printf */<br/><br/>void tst_strlen (void) &#123;<br/>&nbsp;&nbsp;char buf &#91;&#93; = &quot;Find the length of this string&quot;;<br/>&nbsp;&nbsp;int len;<br/><br/>&nbsp;&nbsp;len = strlen (buf);<br/>&nbsp;&nbsp;printf (&quot;string length is %d&#92;n&quot;, len);<br/>&#125;</div><br/><br/> <br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] sprintf函数使用---该函数必须包含includestdio.h,strlen必须包含：#include string.h ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>