<?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>EmbLogic &#187; azhar</title>
	<atom:link href="https://www.emblogic.com/blog/author/azhar/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>syntax of c function pointer</title>
		<link>https://www.emblogic.com/blog/03/syntax-of-c-function-pointer/</link>
		<comments>https://www.emblogic.com/blog/03/syntax-of-c-function-pointer/#comments</comments>
		<pubDate>Mon, 03 Mar 2014 07:23:49 +0000</pubDate>
		<dc:creator><![CDATA[azhar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=8800</guid>
		<description><![CDATA[1.Define a Function Pointer Since a function pointer is nothing else than a variable, it must be defined as usual. In the following example we define a function pointers named pt2Function. It points to a function, which take one float &#8230; <a href="https://www.emblogic.com/blog/03/syntax-of-c-function-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>1.Define a Function Pointer<br />
Since a function pointer is nothing else than a variable, it must be defined as usual. In the following example we define a function pointers named pt2Function. It points to a function, which take one float and two char and return an int.<br />
//  define a function pointer and initialize to NULL<br />
int (*pt2Function)(float, char, char) = NULL;</p>
<p>2.Calling Convention&#8230;.</p>
<p>Normally you don’t have to think about a function’s calling convention: The compiler assumes cdecl as default if you don’t specify another convention. However if you want to know more, keep on reading &#8230; The calling convention tells the compiler things like how to pass the arguments or how to generate the name of a function. Examples for other calling conventions are stdcall, pascal, fastcall. The calling convention belongs to a functions signature: Thus functions and function pointers with different calling convention are incompatible with each other!  For the GNU GCC you use the attribute keyword: Write the<br />
function definition followed by the keyword attribute and then state the calling convention in double parentheses.</p>
<p>//  define the calling convention<br />
void DoIt(float a, char b, char c) __attribute__((cdecl));<br />
3.Assign an Address to a Function Pointer<br />
It’s quite easy to assign the address of a function to a function pointer. You simply take the name of a suitable and known function or member function. Although it’s optional for most compilers you should use the address operator &amp; infront of the function’s name in order to write portable code.<br />
// assign an address to the function pointer..</p>
<p>int DoIt (float a, char b, char c){ printf(&#8220;DoIt\n&#8221;); return a+b+c; }<br />
int DoMore(float a, char b, char c){ printf(&#8220;DoMore\n&#8221;); return a-b+c; }<br />
pt2Function = DoIt; // short form<br />
pt2Function = &amp;DoMore; // correct assignment using address operator</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/syntax-of-c-function-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem in telnet</title>
		<link>https://www.emblogic.com/blog/01/problem-in-telnet/</link>
		<comments>https://www.emblogic.com/blog/01/problem-in-telnet/#comments</comments>
		<pubDate>Mon, 14 Jan 2013 11:42:03 +0000</pubDate>
		<dc:creator><![CDATA[azhar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=5896</guid>
		<description><![CDATA[[root@localhost ~]# telnet 192.168.0.13 Trying 192.168.0.13&#8230; telnet: connect to address 192.168.0.13: Connection refused]]></description>
				<content:encoded><![CDATA[<p>[root@localhost ~]# telnet 192.168.0.13<br />
Trying 192.168.0.13&#8230;<br />
telnet: connect to address 192.168.0.13: Connection refused</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/problem-in-telnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem in scp</title>
		<link>https://www.emblogic.com/blog/01/problem-in-scp/</link>
		<comments>https://www.emblogic.com/blog/01/problem-in-scp/#comments</comments>
		<pubDate>Mon, 14 Jan 2013 11:38:33 +0000</pubDate>
		<dc:creator><![CDATA[azhar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=5782</guid>
		<description><![CDATA[[root@localhost ~]# scp emblogic@192.168.0.13:/home/emblogic/neeraj emblogic@192.168.0.38:/home/emblogic Address 192.168.0.13 maps to server.home, but this does not map back to the address &#8211; POSSIBLE BREAK-IN ATTEMPT! emblogic@192.168.0.13&#8242;s password: reverse mapping checking getaddrinfo for . [192.168.0.38] failed &#8211; POSSIBLE BREAK-IN ATTEMPT! emblogic@192.168.0.38&#8242;s password: scp: &#8230; <a href="https://www.emblogic.com/blog/01/problem-in-scp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>[root@localhost ~]# scp emblogic@192.168.0.13:/home/emblogic/neeraj emblogic@192.168.0.38:/home/emblogic<br />
Address 192.168.0.13 maps to server.home, but this does not map back to the address &#8211; POSSIBLE BREAK-IN ATTEMPT!<br />
emblogic@192.168.0.13&#8242;s password:<br />
reverse mapping checking getaddrinfo for . [192.168.0.38] failed &#8211; POSSIBLE BREAK-IN ATTEMPT!<br />
emblogic@192.168.0.38&#8242;s password:<br />
scp: /home/emblogic/neeraj: Is a directory<br />
Killed by signal 1.<br />
Connection to 192.168.0.13 closed.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/problem-in-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tftp</title>
		<link>https://www.emblogic.com/blog/01/tftp/</link>
		<comments>https://www.emblogic.com/blog/01/tftp/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 09:29:10 +0000</pubDate>
		<dc:creator><![CDATA[azhar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=5783</guid>
		<description><![CDATA[i have problem in tftp while file transfer by using ip address&#8230;.like transfer time out&#8230;.]]></description>
				<content:encoded><![CDATA[<p>i have problem in tftp while file transfer by using ip address&#8230;.like transfer time out&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/tftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
