<?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>c/c++ programming by examples</title>
	<atom:link href="http://cc.byexamples.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cc.byexamples.com</link>
	<description>we share the c/c++ coding by examples</description>
	<lastBuildDate>Thu, 25 Feb 2010 02:50:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lua stack dump for c++</title>
		<link>http://cc.byexamples.com/2008/11/19/lua-stack-dump-for-c/</link>
		<comments>http://cc.byexamples.com/2008/11/19/lua-stack-dump-for-c/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 11:07:27 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cc.byexamples.com/?p=52</guid>
		<description><![CDATA[Any interactions between c++ and lua are going through lua stack. Aware of the stack status may help for debugging.  I always do that, will a peek of the current Lua stack not only helps me debug my codes but also helps me figure out the ways how I can pass table from c++ [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/11/19/lua-stack-dump-for-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Static Linking Compilation for Boost C++ Libraries</title>
		<link>http://cc.byexamples.com/2008/08/16/static-linking-compilation-for-boost-c-libraries/</link>
		<comments>http://cc.byexamples.com/2008/08/16/static-linking-compilation-for-boost-c-libraries/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 02:48:24 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/?p=46</guid>
		<description><![CDATA[Boost C++ Libraries provides a set of peer-reviewed portable C++ source libraries. As we know, coding in c++, there are a lots of things we need to write it from scratch, we need to create a common socket class, threading class, logging class, regex functions etc. Developing those libraries sometimes takes too much time, and [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/08/16/static-linking-compilation-for-boost-c-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling Lua function from C++</title>
		<link>http://cc.byexamples.com/2008/07/15/calling-lua-function-from-c/</link>
		<comments>http://cc.byexamples.com/2008/07/15/calling-lua-function-from-c/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 13:28:26 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cc.byexamples.com/?p=44</guid>
		<description><![CDATA[Calling Lua function from c++ is very simple. Value passing between c++ and Lua goes through stack, Lua C API provides a convenience ways for you to call Lua function from C. To call Lua function, you need to specify:
1. Function Name.
2. Parameters of function call.
3. Return values expected ( Lua function support multiple results [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/07/15/calling-lua-function-from-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>calling c++ function from Lua, implement sleep function</title>
		<link>http://cc.byexamples.com/2008/07/06/calling-c-function-from-lua-implement-sleep-function/</link>
		<comments>http://cc.byexamples.com/2008/07/06/calling-c-function-from-lua-implement-sleep-function/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 05:38:58 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cc.byexamples.com/?p=43</guid>
		<description><![CDATA[You can&#8217;t call c function directly from Lua, you have to create a wrapper function that allows calling from Lua. In this post, shows a simple example to implement millisecond sleep function to Lua using nanosleep. 
To allow function call from Lua script, your function must obey certain format. As variable passing from Lua to [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/07/06/calling-c-function-from-lua-implement-sleep-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Accessing Lua global variables from c++</title>
		<link>http://cc.byexamples.com/2008/06/21/accessing-lua-global-variables-from-c/</link>
		<comments>http://cc.byexamples.com/2008/06/21/accessing-lua-global-variables-from-c/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 19:09:45 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cc.byexamples.com/?p=42</guid>
		<description><![CDATA[Calling Lua scripts from c++&#8217;s example was written in post How to embed Lua 5.1 in C++. Now, let us look at how to access Lua&#8217;s global variables from c++.
Value passing between c++ and Lua rely on Lua stack. Stack is a data structure based on the principle of Last In First Out (LIFO). This [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/06/21/accessing-lua-global-variables-from-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GNU readline: Implement Custom Auto-complete</title>
		<link>http://cc.byexamples.com/2008/06/16/gnu-readline-implement-custom-auto-complete/</link>
		<comments>http://cc.byexamples.com/2008/06/16/gnu-readline-implement-custom-auto-complete/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 17:55:04 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/?p=41</guid>
		<description><![CDATA[GNU readline implement filename auto-complete by default, it will list all the files in the current directory. We can disable it by binds our TAB key to some other operation. In previous post, I simply abort the operation to ignore users hitting TABs.
Auto-complete are useful if only we can customize it. Well, readline allows us [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/06/16/gnu-readline-implement-custom-auto-complete/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>gnu readline: How to keep a history list of entered command lines</title>
		<link>http://cc.byexamples.com/2008/06/13/gnu-readline-how-to-keep-a-history-list-of-entered-command-lines/</link>
		<comments>http://cc.byexamples.com/2008/06/13/gnu-readline-how-to-keep-a-history-list-of-entered-command-lines/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 15:26:36 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/?p=40</guid>
		<description><![CDATA[When I was assigned a project to create a text console based simulator, I am looking into how to keep a history list of entered command lines like Bash Shell. Users are allow to search through the history list by hitting UP and DOWN arrow key.
GNU readline library provides this feature, and it is pretty [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/06/13/gnu-readline-how-to-keep-a-history-list-of-entered-command-lines/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>STL Singleton Template</title>
		<link>http://cc.byexamples.com/2008/06/09/stl-singleton-template/</link>
		<comments>http://cc.byexamples.com/2008/06/09/stl-singleton-template/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 23:30:57 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/?p=39</guid>
		<description><![CDATA[Singleton is one of my favorite design pattern, I use it to keep a global information for my application such as Configurations, Logger etc. I remember I wrote a post regarding simple singleton class, which it does not really work as singleton. It is just a silly way to make a object class looks like [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/06/09/stl-singleton-template/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to embed Lua 5.1 in C++</title>
		<link>http://cc.byexamples.com/2008/06/07/how-to-embed-lua-51-in-c/</link>
		<comments>http://cc.byexamples.com/2008/06/07/how-to-embed-lua-51-in-c/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 14:13:48 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/?p=38</guid>
		<description><![CDATA[Lua, is a scripting language providing dynamic data structures, maths, io and string manipulations just like any interprete language such as Bash, Python, Ruby etc. 
What is so special about Lua? 
Lua is Fast, Light-weight and Embeddable.
Lua can be embedded into c and c++ programs and Lua core are statically complied with your c++ programs, [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2008/06/07/how-to-embed-lua-51-in-c/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>simple callback function</title>
		<link>http://cc.byexamples.com/2007/10/11/simple-callback-function/</link>
		<comments>http://cc.byexamples.com/2007/10/11/simple-callback-function/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 14:30:23 +0000</pubDate>
		<dc:creator>mysurface</dc:creator>
		
		<guid isPermaLink="false">http://cc.byexamples.com/20071011/simple-callback-function/</guid>
		<description><![CDATA[Callback function is hard to trace, but sometimes it is very useful. Especially when you are designing libraries. Callback function is like asking your user to gives you a function name, and you will call that function under certain condition.
For example, you write a callback timer. It allows you to specified the duration and what [...]]]></description>
		<wfw:commentRss>http://cc.byexamples.com/2007/10/11/simple-callback-function/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
