<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hackepedia.org/index.php?action=history&amp;feed=atom&amp;title=Strcpy</id>
	<title>Strcpy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hackepedia.org/index.php?action=history&amp;feed=atom&amp;title=Strcpy"/>
	<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=Strcpy&amp;action=history"/>
	<updated>2026-05-08T16:40:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://hackepedia.org/index.php?title=Strcpy&amp;diff=3837&amp;oldid=prev</id>
		<title>Franks at 08:13, 5 September 2007</title>
		<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=Strcpy&amp;diff=3837&amp;oldid=prev"/>
		<updated>2007-09-05T08:13:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:13, 5 September 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;strcpy is part of standard libc in the c programming language. strcpy(3) can be found in the development [[manual]] pages.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;strcpy is part of standard libc in the c programming language. strcpy(3) can be found in the development [[manual]] pages.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strncpy(name, &amp;quot;t&amp;quot;, 4&amp;quot;) --&amp;gt;  name = &amp;quot;t\0\0\0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strncpy(name, &amp;quot;t&amp;quot;, 4&amp;quot;) --&amp;gt;  name = &amp;quot;t\0\0\0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Franks</name></author>
	</entry>
	<entry>
		<id>https://hackepedia.org/index.php?title=Strcpy&amp;diff=3836&amp;oldid=prev</id>
		<title>Franks: New page: strcpy is part of standard libc in the c programming language. strcpy(3) can be found in the development manual pages.     strncpy(name, &quot;t&quot;, 4&quot;) --&gt;  name = &quot;t\0\0\0&quot;  strncpy(name, &quot;...</title>
		<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=Strcpy&amp;diff=3836&amp;oldid=prev"/>
		<updated>2007-09-05T08:13:00Z</updated>

		<summary type="html">&lt;p&gt;New page: strcpy is part of standard libc in the c programming language. strcpy(3) can be found in the development &lt;a href=&quot;/index.php?title=Manual&quot; title=&quot;Manual&quot;&gt;manual&lt;/a&gt; pages.     strncpy(name, &amp;quot;t&amp;quot;, 4&amp;quot;) --&amp;gt;  name = &amp;quot;t\0\0\0&amp;quot;  strncpy(name, &amp;quot;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;strcpy is part of standard libc in the c programming language. strcpy(3) can be found in the development [[manual]] pages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 strncpy(name, &amp;quot;t&amp;quot;, 4&amp;quot;) --&amp;gt;  name = &amp;quot;t\0\0\0&amp;quot;&lt;br /&gt;
 strncpy(name, &amp;quot;tim&amp;quot;, 4&amp;quot;) --&amp;gt; name = &amp;quot;tim\0&amp;quot;&lt;br /&gt;
 strncpy(name, &amp;quot;dave&amp;quot;, 4)  --&amp;gt; name = &amp;quot;dave&amp;quot;  (note, no \0)&lt;br /&gt;
 strncpy(name, &amp;quot;benjamin&amp;quot;, 4&amp;quot; --&amp;gt; name = &amp;quot;benj&amp;quot; (still no \0)&lt;br /&gt;
&lt;br /&gt;
strn* or snprintf  will ensure you will never exceed SIZE, but if you are less than SIZE it pads it with \0. This will prevent buffer overflows. If you&amp;#039;re using a BSD based system, check out strlcpy which is [http://www.courtesan.com/todd/papers/strlcpy.html preferred over strncpy].&lt;/div&gt;</summary>
		<author><name>Franks</name></author>
	</entry>
</feed>