Strcat

From SA-MP Wiki

Jump to: navigation, search

Strcat


This function contacts two strings into the destination reference.


Parameters:
(dest[],const source[],maxlength=sizeof string)
dest[]The destination to copy the two concatted string in.
const source[]The source string.
maxlength=sizeof stringThe maximum length of the destination.


ReturnsThe length of the new destination string.
strcat(destination, "Hi, how are you?", sizeof(destination));


Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Any functions here can also be found on the Old scripting functions page.

  • strcmp: Compare two strings to see if they are the same.
  • strfind: Search for a substring in a string.
  • strtok: Search for a variable typed after a space.
  • strdel: Delete part/all of a string.
  • strins: Put a string into another string.
  • strlen: Check the length of a string.
  • strmid: Extract characters from a string.
  • strpack: Pack a string into a destination.
  • strval: Find the value of a string.
Personal tools