<?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; saw</title>
	<atom:link href="https://www.emblogic.com/blog/author/saw/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>Plz any one give ans</title>
		<link>https://www.emblogic.com/blog/06/how-work-function/</link>
		<comments>https://www.emblogic.com/blog/06/how-work-function/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 03:37:54 +0000</pubDate>
		<dc:creator><![CDATA[saw]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=767</guid>
		<description><![CDATA[Which is/are the type/s of memory allocation that needs/need the programmer to take care of memory management? 1. Static memory allocation //true  or false 2. Dynamic memory allocation //true  or false 3. Automatic memory allocation //true  or false 4. Memory &#8230; <a href="https://www.emblogic.com/blog/06/how-work-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>Which is/are the type/s of memory allocation that needs/need the programmer to take<br />
care of memory management?</strong></p>
<p>1. Static memory allocation //true  or false</p>
<p>2. Dynamic memory allocation //true  or false</p>
<p>3. Automatic memory allocation //true  or false</p>
<p>4. Memory allocation on stack //true  or false</p>
<p>5. Memory allocation on heap //true  or false</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/06/how-work-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I want code optimization</title>
		<link>https://www.emblogic.com/blog/06/i-want-code-optimization/</link>
		<comments>https://www.emblogic.com/blog/06/i-want-code-optimization/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 03:11:44 +0000</pubDate>
		<dc:creator><![CDATA[saw]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=763</guid>
		<description><![CDATA[Dear All!! I have done this assignment but Ain&#8217;t satisfying. I want code optimization. Assignment No. =&#62;005_16(Q.No.17)  Write a program to find the number of times that a given word(i.g a short string) occurs in a sentence (i.e. a long &#8230; <a href="https://www.emblogic.com/blog/06/i-want-code-optimization/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Dear All!!</p>
<p>I have <strong>done</strong> this assignment but <strong>Ain&#8217;t satisfying</strong>. I want code optimization.</p>
<p>Assignment No. =&gt;005_16(Q.No.17)  Write a program to find the number of times that a given word(i.g a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be:</p>
<p>The word is<strong> &#8220;the&#8221;. </strong>//should be any word<strong><br />
</strong></p>
<p>The sentence is<strong> &#8220;the cat sat on the mat&#8221;.</strong> //can be any sentence<strong><br />
</strong></p>
<p>The word occurs<strong> 2 times.<br />
</strong></p>
<p>#include&lt;stdio.h&gt;<br />
#include&lt;stdlib.h&gt;<br />
#include&lt;string.h&gt;<br />
int search(char *, char *);<br />
int main()<br />
{<br />
/*&#8217;word&#8217; input from user*/<br />
char *ch=0;<br />
int i;<br />
printf(&#8220;Enter \&#8217;word\&#8217;\n&#8221;);<br />
ch=(char *)malloc(sizeof(char)*100);<br />
fgets(ch,100,stdin);<br />
/*input String*/<br />
printf(&#8220;Enter \&#8217;Sentence\&#8217;\n&#8221;);<br />
char *str=0;<br />
str=(char *)malloc(sizeof(char)*100);<br />
fgets(str,100,stdin);<br />
i=strlen(str);&#8211;i;<br />
str[i] = &#8216; &#8216;;++i;<br />
str[i] = &#8221;;<br />
search(ch,str);<br />
return 0;<br />
}<br />
int search(char *ch, char *str)<br />
{<br />
int i=0,j=0,count=0;<br />
while((*(str+i))!=&#8221;)<br />
{<br />
if(((*(str+i)) == (*(ch+j))) || (((*(str+i)) == &#8216; &#8216;) &amp;&amp; ((*(ch+j)) == 10)))<br />
{<br />
if(((*(str+i))== &#8216; &#8216;) &amp;&amp; ((*(ch+j))==10))<br />
{<br />
count++;<br />
j=-1;<br />
}<br />
j++;<br />
}<br />
else<br />
{<br />
for(i;(*(str+i) != &#8216; &#8216;);i++)<br />
if((*(str+i))==10)<br />
break;<br />
}<br />
i++;<br />
}<br />
printf(&#8220;The word occurs %d times \n&#8221;,count);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/06/i-want-code-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Transfer Protocol (FTP)</title>
		<link>https://www.emblogic.com/blog/05/file-transfer-protocol-ftp-by-teklal/</link>
		<comments>https://www.emblogic.com/blog/05/file-transfer-protocol-ftp-by-teklal/#comments</comments>
		<pubDate>Mon, 23 May 2011 12:36:12 +0000</pubDate>
		<dc:creator><![CDATA[saw]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=704</guid>
		<description><![CDATA[FTP requires two computers, one running an FTP server, the other running an FTP client. The exchange is initiated by the client which logs in under an accepted user name and password. Once this occurs, a session is opened and &#8230; <a href="https://www.emblogic.com/blog/05/file-transfer-protocol-ftp-by-teklal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>FTP</strong> requires two computers, one running an FTP server, the other running an FTP client. The exchange is initiated by the client which logs in under an accepted user name and password. Once this occurs, a session is opened and stays open until closed by either the client or the server, or until it times out. While the session is open, the client may execute numerous FTP commands on the server. These include commands to change directories, list files, get files and put files.</p>
<p>What is the difference between passive and active FTP?</p>
<p>FTP is an unusual protocol in that it uses two ports, one for commands and the other for data. (This is one of the reasons it is superior to HTTP for transferring large files.) Active FTP was invented first. The client initiates a connection on the server’s command port. The server then initiates a connection with the client from its data port. In Passive FTP, the client initiates both connections with the server, which remains “passive”.</p>
<p>Active FTP may cause problems if your client is behind a firewall. From the firewall’s point of view, the FTP server that is trying to initiate a connection with your client looks like an intruder and is usually blocked. This is why many users have difficulty using FTP to download files from behind a firewall.</p>
<p>Passive FTP solves this problem, but creates other problems, notably where FTP server security is concerned. The server must listen on a large number of ports. This requires the firewall to let a lot of unqualified traffic through. Most firewall administrators do not like this.</p>
<p>As a rule, you do not need to be concerned about passive and active FTP unless you administer an FTP server or a firewall. If you experience difficulty using your FTP client from behind a firewall, this is likely the reason. Perhaps you should discuss the matter with your firewall administrator.</p>
<p>Is FTP better than HTTP for downloading files?</p>
<p>Yes, as a matter of fact it is. HTTP is designed to fetch web pages. It is optimized for numerous repeated fetches of small items. FTP is designed for transferring files, and offers faster overall throughput and better error checking. It is not uncommon for a user to fail repeatedly to download a large file via HTTP using their browser, only to succeed on their first try using a dedicated FTP client. If you download large files frequently, and experience difficulties, get a dedicated FTP client software program.</p>
<p>What is anonymous FTP?</p>
<p>FTP requires the client program to log into the server program identifying themselves with a user name and authenticating themselves with a password. Many FTP sites exist however, that freely offer data to the public. In order to comply with FTP’s requirement that a session be opened with a user name and a password, these sites operate what is known as “anonymous FTP”. This involves using a generic user whose name is “anonymous” and who will accept any syntactically valid email address as a password. It enables the server to distinguish between users, since email addresses are always unique, yet allows all users to log in under the common user name “anonymous”.<strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/file-transfer-protocol-ftp-by-teklal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
