<?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: To copy the contents of one string to another string using pointer</title>
	<atom:link href="http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/feed/" rel="self" type="application/rss+xml" />
	<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/</link>
	<description>...bringing innovative minds together</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:55:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.6</generator>
	<item>
		<title>By: sultana</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-6547</link>
		<dc:creator>sultana</dc:creator>
		<pubDate>Wed, 04 Jan 2012 14:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-6547</guid>
		<description>plz help me iam not getting the program of c i.e;sorting strings using pointers</description>
		<content:encoded><![CDATA[<p>plz help me iam not getting the program of c i.e;sorting strings using pointers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhansu</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-6524</link>
		<dc:creator>Sudhansu</dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-6524</guid>
		<description>i lykd da program as it is short yet simple.</description>
		<content:encoded><![CDATA[<p>i lykd da program as it is short yet simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaishu</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-5326</link>
		<dc:creator>vaishu</dc:creator>
		<pubDate>Tue, 16 Aug 2011 14:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-5326</guid>
		<description>Its nice. Easy to understand... Thank you...</description>
		<content:encoded><![CDATA[<p>Its nice. Easy to understand&#8230; Thank you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepesh</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-5002</link>
		<dc:creator>Deepesh</dc:creator>
		<pubDate>Tue, 28 Jun 2011 14:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-5002</guid>
		<description>Hey thanx it came as lot of use to me :D</description>
		<content:encoded><![CDATA[<p>Hey thanx it came as lot of use to me <img src='http://electrofriends.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AbhraJYOTi</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-4904</link>
		<dc:creator>AbhraJYOTi</dc:creator>
		<pubDate>Fri, 27 May 2011 05:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-4904</guid>
		<description>program by the website is fully correct,there is no need to assign any valid address for str2...</description>
		<content:encoded><![CDATA[<p>program by the website is fully correct,there is no need to assign any valid address for str2&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mayuresh Sawant</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-3082</link>
		<dc:creator>Mayuresh Sawant</dc:creator>
		<pubDate>Fri, 30 Jul 2010 10:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-3082</guid>
		<description>not working....u need to assign valid address to str2. check the updated code

#include
#include
void stcpy(char *str1, char *str2);
void main()
{
char ch; //----&gt; added

char *str1, *str2=&amp;ch; //---&gt;assigned
clrscr();
printf(“\n\n\t ENTER A STRING…: “);
gets(str1);
stcpy(str1,str2);
printf(“\n\t THE COPIED STRING IS…: “);
puts(str2);
getch();
}
void stcpy(char *str1, char *str2)
{
int i, len = 0;
while(*(str1+len)!=’′)
len++;
for(i=0;i&lt;len;i++)
*(str2+i) = *(str1+i);
*(str2+i) = ‘′;
}</description>
		<content:encoded><![CDATA[<p>not working&#8230;.u need to assign valid address to str2. check the updated code</p>
<p>#include<br />
#include<br />
void stcpy(char *str1, char *str2);<br />
void main()<br />
{<br />
char ch; //&#8212;-&gt; added</p>
<p>char *str1, *str2=&ch; //&#8212;&gt;assigned<br />
clrscr();<br />
printf(“\n\n\t ENTER A STRING…: “);<br />
gets(str1);<br />
stcpy(str1,str2);<br />
printf(“\n\t THE COPIED STRING IS…: “);<br />
puts(str2);<br />
getch();<br />
}<br />
void stcpy(char *str1, char *str2)<br />
{<br />
int i, len = 0;<br />
while(*(str1+len)!=’′)<br />
len++;<br />
for(i=0;i&lt;len;i++)<br />
*(str2+i) = *(str1+i);<br />
*(str2+i) = ‘′;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parveez</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-3077</link>
		<dc:creator>Parveez</dc:creator>
		<pubDate>Thu, 29 Jul 2010 17:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-3077</guid>
		<description>wow nice program.......</description>
		<content:encoded><![CDATA[<p>wow nice program&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurabhchopra</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-copy-the-contents-of-one-string-to-another-string-using-pointer/comment-page-1/#comment-3016</link>
		<dc:creator>saurabhchopra</dc:creator>
		<pubDate>Fri, 16 Jul 2010 10:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=405#comment-3016</guid>
		<description>a beautiful program.</description>
		<content:encoded><![CDATA[<p>a beautiful program.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

