/www.cppreference.com/wiki/tr/c/string/strcpy
#! | 58 lines | 52 code | 6 blank | 0 comment | 0 complexity | acc0bca7f3c08aef302e4cdacfa2f2a9 MD5 | raw file
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="tr" 4 lang="tr" dir="ltr"> 5<head> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 7 <title>tr:c:string:strcpy</title> 8<meta name="generator" content="DokuWiki" /> 9<meta name="robots" content="index,follow" /> 10<meta name="date" content="2010-10-28T18:17:27-0700" /> 11<meta name="keywords" content="tr,c,string,strcpy" /> 12<link rel="search" type="application/opensearchdescription+xml" href="http://www.cppreference.com/wiki/lib/exe/opensearch.php" title="C++ Reference" /> 13<link rel="start" href="../../../../index.html" /> 14<link rel="contents" href="http://www.cppreference.com/wiki/tr/c/string/strcpy?do=index" title="İndeks" /> 15<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="http://www.cppreference.com/wiki/feed.php" /> 16<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="http://www.cppreference.com/wiki/feed.php?mode=list&ns=tr:c:string" /> 17<link rel="alternate" type="text/html" title="Plain HTML" href="http://www.cppreference.com/wiki/_export/xhtml/tr/c/string/strcpy" /> 18<link rel="alternate" type="text/plain" title="Wiki Markup" href="http://www.cppreference.com/wiki/_export/raw/tr/c/string/strcpy" /> 19<link rel="canonical" href="strcpy" /> 20<link rel="stylesheet" media="screen" type="text/css" href="../../../lib/exe/css.php@t=custom1&tseed=1289693594" /> 21<link rel="stylesheet" media="all" type="text/css" href="../../../lib/exe/css.php@s=all&t=custom1&tseed=1289693594" /> 22<link rel="stylesheet" media="print" type="text/css" href="../../../lib/exe/css.php@s=print&t=custom1&tseed=1289693594" /> 23<script type="text/javascript" ><!--//--><![CDATA[//><!-- 24var NS='tr:c:string';var JSINFO = {"id":"tr:c:string:strcpy","namespace":"tr:c:string"}; 25//--><!]]></script> 26<script type="text/javascript" charset="utf-8" src="../../../lib/exe/js.php@tseed=1289693594" ></script> 27</head> 28<body> 29<div class="dokuwiki export"> 30 31<h2 class="sectionedit1"><a name="strcpy" id="strcpy">strcpy</a></h2> 32<div class="level2"> 33 34<p> 35Söz dizimi: 36</p> 37<pre class="cpp code cpp"> <span class="co2">#include <cstring></span> 38 <span class="kw4">char</span> <span class="sy2">*</span><span class="kw3">strcpy</span><span class="br0">(</span><span class="kw4">char</span> <span class="sy2">*</span>hedef, <span class="kw4">const</span> <span class="kw4">char</span> <span class="sy2">*</span>kaynak<span class="br0">)</span><span class="sy4">;</span></pre> 39<p> 40strcpy() fonksiyonu ikinci parametresiyle aldigi değeri null sonlandırıcı işaret de dahil olmak üzere birinci parametresine kopyalar. Fonksiyonun dönüş değeri birinci parametresidir (hedef). 41</p> 42 43<p> 44Sınır kontrolü yapmadığından güvenli değildir. Benzer işi yapan daha güvenli sürümü için bknz <code>strncpy()</code>. 45</p> 46 47<p> 48Benzer Başlıklar <a href="http://www.cppreference.com/wiki/tr/c/string/memcpy" class="wikilink2" title="tr:c:string:memcpy" rel="nofollow">memcpy</a>, <a href="strcat" class="wikilink1" title="tr:c:string:strcat">strcat</a>, <a href="strchr" class="wikilink1" title="tr:c:string:strchr">strchr</a>, <a href="http://www.cppreference.com/wiki/tr/c/string/strcmp" class="wikilink2" title="tr:c:string:strcmp" rel="nofollow">strcmp</a>, <a href="http://www.cppreference.com/wiki/tr/c/string/strncmp" class="wikilink2" title="tr:c:string:strncmp" rel="nofollow">strncmp</a>, <a href="http://www.cppreference.com/wiki/tr/c/string/strncpy" class="wikilink2" title="tr:c:string:strncpy" rel="nofollow">strncpy</a> 49</p> 50 51<p> 52Diğer benzer fonksiyonlar<a href="http://www.cppreference.com/wiki/tr/c/string/strlcpy" class="wikilink2" title="tr:c:string:strlcpy" rel="nofollow">strlcpy</a> and <a href="http://www.cppreference.com/wiki/tr/c/string/strlcat" class="wikilink2" title="tr:c:string:strlcat" rel="nofollow">strlcat</a> (standart değiller). 53</p> 54 55</div> 56</div> 57</body> 58</html>