<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just answer the F*#king question &#187; XCode  / C</title>
	<atom:link href="http://www.jatfq.com/archives/category/usefull-stuff/xcode-c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jatfq.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Aug 2010 13:05:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Make phone call with Iphone API</title>
		<link>http://www.jatfq.com/archives/111</link>
		<comments>http://www.jatfq.com/archives/111#comments</comments>
		<pubDate>Mon, 30 Nov 2009 15:53:48 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[XCode  / C]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/111</guid>
		<description><![CDATA[NSURL *phoneNumberURL = [NSURL URLWithString:@"tel:8005551234"]; [[UIApplication sharedApplication] openURL:phoneNumberURL];]]></description>
			<content:encoded><![CDATA[<p><code>NSURL *phoneNumberURL = [NSURL URLWithString:@"tel:8005551234"];<br />
[[UIApplication sharedApplication] openURL:phoneNumberURL];</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F111&amp;title=Make+phone+call+with+Iphone+API" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Java Float into C/C++ Float</title>
		<link>http://www.jatfq.com/archives/68</link>
		<comments>http://www.jatfq.com/archives/68#comments</comments>
		<pubDate>Thu, 12 Feb 2009 19:32:55 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[XCode  / C]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=68</guid>
		<description><![CDATA[If you have a float stored using writeFloat use the following to read it back into C float aFloat; unsigned char *pBytes; pBytes = (unsigned char * )&aFloat; pBytes[3] = _buffer[_offset++]; pBytes[2] = _buffer[_offset++]; pBytes[1] = _buffer[_offset++]; pBytes[0] = _buffer[_offset++]; return aFloat; Assume that _buffer is your byte array or pointer to an unsigned char [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a float stored using writeFloat use the following to read it back into C</p>
<p><code>float aFloat;<br />
unsigned char  *pBytes;<br />
pBytes = (unsigned char * )&aFloat;<br />
pBytes[3] = _buffer[_offset++];<br />
pBytes[2] = _buffer[_offset++];<br />
pBytes[1] = _buffer[_offset++];<br />
pBytes[0] = _buffer[_offset++];<br />
return aFloat;</code></p>
<p>Assume that _buffer is your byte array or pointer to an unsigned char *, and that _offset is the offset in your data.</p>
<p>To read an integer value:</p>
<p><code>int i =  ((_buffer[_offset]<<24)|(_buffer[_offset+1]<<16)|(_buffer[_offset+2]<<8)|(_buffer[_offset+3]));<br />
_offset+=4;<br />
return i;</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F68&amp;title=Convert+Java+Float+into+C%2FC%2B%2B+Float" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
