<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [问] fwrite的问题</title>
	<atom:link href="http://bianbian.org/technology/194.html/feed" rel="self" type="application/rss+xml" />
	<link>http://bianbian.org/technology/194.html</link>
	<description>关注技术, 偶尔动动手</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:17:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: Solrex Yang</title>
		<link>http://bianbian.org/technology/194.html#comment-2603</link>
		<dc:creator>Solrex Yang</dc:creator>
		<pubDate>Wed, 01 Aug 2007 00:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://bianbian.sunshow.net/index.php/technology/cc/194.html#comment-2603</guid>
		<description>o</description>
		<content:encoded><![CDATA[<p>o</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bianbian</title>
		<link>http://bianbian.org/technology/194.html#comment-2533</link>
		<dc:creator>bianbian</dc:creator>
		<pubDate>Sun, 29 Jul 2007 11:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://bianbian.sunshow.net/index.php/technology/cc/194.html#comment-2533</guid>
		<description>我知道怎么回事了。并不是内存分配的问题。
而是 _header.wHeight, _header.wWidth 这两个数据的类型是WORD(unsigned short)，两个字节，最大能承受FF*FF的大小。
相乘以后C语言以左边的类型为准，还是两个字节来存放乘积，就溢出了。</description>
		<content:encoded><![CDATA[<p>我知道怎么回事了。并不是内存分配的问题。<br />
而是 _header.wHeight, _header.wWidth 这两个数据的类型是WORD(unsigned short)，两个字节，最大能承受FF*FF的大小。<br />
相乘以后C语言以左边的类型为准，还是两个字节来存放乘积，就溢出了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Solrex Yang</title>
		<link>http://bianbian.org/technology/194.html#comment-2502</link>
		<dc:creator>Solrex Yang</dc:creator>
		<pubDate>Sat, 28 Jul 2007 05:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://bianbian.sunshow.net/index.php/technology/cc/194.html#comment-2502</guid>
		<description>摘自 C 语言标准

size_t fwrite(const void * restrict ptr, size_t size, size_t nmemb, FILE * restrict stream);

The fwrite function writes, from the array pointed to by ptr, up to nmemb elements whose size is specified by size, to the stream pointed to by stream. For each object, size calls are made to the fputc function, taking the values (in order) from an array of unsigned char exactly overlaying the object. The file position indicator for the stream (if defined) is advanced by the number of characters successfully written. If an error occurs, the resulting value of the file position indicator for the stream is indeterminate.</description>
		<content:encoded><![CDATA[<p>摘自 C 语言标准</p>
<p>size_t fwrite(const void * restrict ptr, size_t size, size_t nmemb, FILE * restrict stream);</p>
<p>The fwrite function writes, from the array pointed to by ptr, up to nmemb elements whose size is specified by size, to the stream pointed to by stream. For each object, size calls are made to the fputc function, taking the values (in order) from an array of unsigned char exactly overlaying the object. The file position indicator for the stream (if defined) is advanced by the number of characters successfully written. If an error occurs, the resulting value of the file position indicator for the stream is indeterminate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

