முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

strcopy

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Copies a string into the destination string.

NameDescription
dest[]The string to copy the source string into.
const source[]The source string.
maxlength = sizeof (dest)The maximum length of the destination. (optional)

Returns​

The length of the new destination string.

Examples​

new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

new string[64];
strcopy(string, playerName); // Copies playerName into string
  • strcat: Concatenate two strings into a destination reference.