warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
strcat
warning
This function starts with a lowercase letter.
Description
This function concatenates (joins together) two strings into the destination string.
Name | Description |
---|---|
dest[] | The string to store the two concatenated strings in. |
const source[] | The source string. |
maxlength = sizeof (dest) | The maximum length of the destination. |
Returns
The length of the new destination string.
Examples
new string[40] = "Hello";
strcat(string, " World!");
// The string is now 'Hello World!'
Related Functions
- strcmp: Compare two strings to check if they are the same.
- strfind: Search for a string in another string.
- strdel: Delete part of a string.
- strins: Insert text into a string.
- strlen: Get the length of a string.
- strmid: Extract part of a string into another string.
- strpack: Pack a string into a destination string.
- strval: Convert a string into an integer.