Rechercher une page de manuel
strcpy
Langue: ru
Version: 11 ÁÐÒÅÌÑ 1993 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
Sommaire
îáú÷áîéå
strcpy, strncpy - ËÏÐÉÒÏ×ÁÎÉÅ ÓÔÒÏËÉóéîôáëóéó
#include <string.h> char *strcpy(char *dest, const char *src); char *strncpy(char *dest, const char *src, size_t n);
ïðéóáîéå
æÕÎËÃÉÑ strcpy() ËÏÐÉÒÕÅÔ ÓÔÒÏËÕ, ÕËÁÚÁÎÎÕÀ ËÁË src (×ËÌÀÞÁÑ ÚÁ×ÅÒÛÁÀÝÉÊ ÓÉÍ×ÏÌ `\0'), × ÍÁÓÓÉ×, ÕËÁÚÁÎÎÙÊ ËÁË dest. óÔÒÏËÉ ÎÅ ÍÏÇÕÔ ÐÅÒÅËÒÙ×ÁÔØÓÑ, É × ÃÅÌÅ×ÏÊ ÓÔÒÏËÅ dest ÄÏÌÖÎÏ ÂÙÔØ ÄÏÓÔÁÔÏÞÎÏ ÍÅÓÔÁ ÄÌÑ ÐÏÌÕÞÅÎÉÑ ËÏÐÉÉ.æÕÎËÃÉÑ strncpy ÒÁÂÏÔÁÅÔ ÐÏÄÏÂÎÙÍ ÏÂÒÁÚÏÍ, ÎÏ ËÏÐÉÒÕÀÔÓÑ ÔÏÌØËÏ ÐÅÒ×ÙÅ n ÂÁÊÔ ÓÔÒÏËÉ src. ôÁËÉÍ ÏÂÒÁÚÏÍ, ÅÓÌÉ ÎÕÌÅ×ÏÊ ÂÁÊÔ ÏÔÓÕÔÓÔ×ÕÅÔ × ÐÅÒ×ÙÈ n ÂÁÊÔÁÈ src, ÔÏ ÒÅÚÕÌØÔÉÒÕÀÝÁÑ ÓÔÒÏËÁ ÎÅ ÂÕÄÅÔ ÚÁ×ÅÒÛÅÎÁ ÓÉÍ×ÏÌÏÍ `\0'.
÷ ÓÌÕÞÁÅ, ÅÓÌÉ ÄÌÉÎÁ src ÍÅÎØÛÅ, ÞÅÍ n, ÔÏ ÏÓÔÁÔÏË dest ÂÕÄÅÔ ÚÁÐÏÌÎÅÎ ÎÕÌÑÍÉ.
÷ïú÷òáýáåíïå úîáþåîéå
æÕÎËÃÉÉ strcpy() É strncpy() ×ÏÚ×ÒÁÝÁÀÔ ÕËÁÚÁÔÅÌØ ÎÁ ÃÅÌÅ×ÕÀ ÓÔÒÏËÕ dest.ïûéâëé òåáìéúáãéé
åÓÌÉ ÃÅÌÅ×ÁÑ ÓÔÒÏËÁ strcpy ÎÅÄÏÓÔÁÔÏÞÎÏ ×ÅÌÉËÁ (ÔÁËÏÅ ÓÌÕÞÁÅÔÓÑ, ÅÓÌÉ ÐÒÏÇÒÁÍÍÉÓÔ ÉÄÉÏÔ/ÂÏÌ×ÁÎ É ÎÅ ÐÒÏ×ÅÒÑÅÔ ÒÁÚÍÅÒ ÐÅÒÅÄ ËÏÐÉÒÏ×ÁÎÉÅÍ), ÔÏ ÍÏÖÅÔ ÓÌÕÞÉÔÓÑ ÕÖÁÓÎÏÅ. ðÅÒÅÐÏÌÎÅÎÉÅ ÓÔÒÏË ÆÉËÓÉÒÏ×ÁÎÎÏÊ ÄÌÉÎÙ Ñ×ÌÑÅÔÓÑ ÌÀÂÉÍÙÍ ÍÅÔÏÄÏÍ ËÒÜËÅÒÏ×.óïïô÷åôóô÷éå óôáîäáòôáí
SVID 3, POSIX, BSD 4.3, ISO 9899óíïôòé ôáëöå
bcopy(3), memccpy(3), memcpy(3), memmove(3)ðåòå÷ïä
ðÅÒÅ×ÏÄ Ó ÁÎÇÌÉÊÓËÏÇÏ (C) 2000 äÍÉÔÒÉÊ íÏÒÏÖÎÉËÏ× (dm@simplex.irkutsk.ru, 2:5070/141.3)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre