strcat
Description:
Function strcat concatenates (joins together) two strings into the destination string.
This function name starts with a lowercase letter. |
Parameters:
(dest[], const source[], maxlength = sizeof dest)
string | dest | The string to store the two concatenated strings in. |
string | source | The source string. |
int | maxlength | The maximum length of the destination. |
Return Values:
The length of the new destination string.
Examples:
new string[40] = "Hello"; strcat(string, " World!"); // The string is now 'Hello World!'
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- strlen: Get the length of a string.
- strpack: Pack a string. Packed strings use 75% less memory.
- strunpack: Unpack a string.
- strmid: Extract a range of characters from a string.
- strins: Insert a string into another string.
- strdel: Delete part of a string.
- strcmp: Compares two strings to see if they are the same.
- strfind: Search for a sub string in a string.
- strval: Convert a string to an integer.
- valstr: Convert an integer into a string.
- ispacked: Checks if the given string is packed.
- uudecode: Decode an UU-encoded string.
- uuencode: Encode a string to an UU-decoded string.
- memcpy: Copy bytes from one location to another.