<?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: scratching my head over a c problem&#8230;</title>
	<atom:link href="http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/</link>
	<description>a plotting plotter plotted a plot at whatstheplot.com</description>
	<lastBuildDate>Wed, 21 Jul 2010 13:45:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: Dolmen</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4111</link>
		<dc:creator>Dolmen</dc:creator>
		<pubDate>Thu, 31 May 2007 11:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4111</guid>
		<description>No problem with this test code under RHEL 4.3 (libc-2.3.4) on x86_64.
However, for a complete test, you should also provide the content of &quot;testfile&quot;.</description>
		<content:encoded><![CDATA[<p>No problem with this test code under RHEL 4.3 (libc-2.3.4) on x86_64.<br />
However, for a complete test, you should also provide the content of &#8220;testfile&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmedre</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4107</link>
		<dc:creator>ahmedre</dc:creator>
		<pubDate>Tue, 29 May 2007 08:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4107</guid>
		<description>yup, seems as though its related to which libc you compile against...  one of my friends found that the tls libc breaks while the normal one doesn&#039;t - will report here if i find out anything else.</description>
		<content:encoded><![CDATA[<p>yup, seems as though its related to which libc you compile against&#8230;  one of my friends found that the tls libc breaks while the normal one doesn&#8217;t &#8211; will report here if i find out anything else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamal</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4099</link>
		<dc:creator>Jamal</dc:creator>
		<pubDate>Mon, 21 May 2007 01:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4099</guid>
		<description>Salaam,

I have a prayer timing widget idea for Vista. Any ideas on how I can get access to a databse/pool of comprehensive prayer timings to cities all around the world, or at least North America?

Jazak&#039;Allah,
Jamal.

contact me at: jamal.saq [at] gmail.com</description>
		<content:encoded><![CDATA[<p>Salaam,</p>
<p>I have a prayer timing widget idea for Vista. Any ideas on how I can get access to a databse/pool of comprehensive prayer timings to cities all around the world, or at least North America?</p>
<p>Jazak&#8217;Allah,<br />
Jamal.</p>
<p>contact me at: jamal.saq [at] gmail.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmedre</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4096</link>
		<dc:creator>ahmedre</dc:creator>
		<pubDate>Thu, 17 May 2007 08:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4096</guid>
		<description>by the way, the output of valgrid [short version] is:

&lt;code&gt;
==20776== Invalid read of size 2
==20776==    at 0x4B82483: getdelim (in /lib64/libc-2.5.so)
==20776==    by 0x40061F: main (broken.c:7)
==20776==  Address 0x0 is not stack&#039;d, malloc&#039;d or (recently) free&#039;d
&lt;/code&gt;

so getline calls getdelim and getdelim is broken on x86_64?</description>
		<content:encoded><![CDATA[<p>by the way, the output of valgrid [short version] is:</p>
<p><code><br />
==20776== Invalid read of size 2<br />
==20776==    at 0x4B82483: getdelim (in /lib64/libc-2.5.so)<br />
==20776==    by 0x40061F: main (broken.c:7)<br />
==20776==  Address 0x0 is not stack'd, malloc'd or (recently) free'd<br />
</code></p>
<p>so getline calls getdelim and getdelim is broken on x86_64?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmedre</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4095</link>
		<dc:creator>ahmedre</dc:creator>
		<pubDate>Thu, 17 May 2007 08:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4095</guid>
		<description>thanks for your response - 
so setting tmp to NULL didn&#039;t fix it.  however, malloc before calling getline results in the file pointer being preserved.  seems as though maybe getline is having an issue allocating the buffer, but why?</description>
		<content:encoded><![CDATA[<p>thanks for your response &#8211;<br />
so setting tmp to NULL didn&#8217;t fix it.  however, malloc before calling getline results in the file pointer being preserved.  seems as though maybe getline is having an issue allocating the buffer, but why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reda</title>
		<link>http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/comment-page-1/#comment-4094</link>
		<dc:creator>reda</dc:creator>
		<pubDate>Thu, 17 May 2007 07:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://whatstheplot.com/blog/2007/05/17/scratching-my-head-over-a-c-problem/#comment-4094</guid>
		<description>&quot;now fp is: not null&quot;
i compiled your code and didn&#039;t have that problem

try initializing tmp with NULL, since getline only allocates memory if the pointer is NULL... or better yet malloc it yourself and give it to getline.</description>
		<content:encoded><![CDATA[<p>&#8220;now fp is: not null&#8221;<br />
i compiled your code and didn&#8217;t have that problem</p>
<p>try initializing tmp with NULL, since getline only allocates memory if the pointer is NULL&#8230; or better yet malloc it yourself and give it to getline.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
