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.
strpack
warning
This function starts with a lowercase letter.
Description
Pack a string. Packed strings use 75% less memory.
Name | Description |
---|---|
dest[] | The destination string to save the packed string in, passed by reference. |
const source[] | The source, original string. |
maxlength = sizeof (string) | The maximum size to insert. |
Returns
The number of characters packed.
Examples
new string[32 char];
strpack(string, "Hi, how are you?");
Related Functions
- strcmp: Compare two strings to check if they are the same.
- strfind: Search for a string in another string.
- strins: Insert text into a string.
- strlen: Get the length of a string.
- strmid: Extract part of a string into another string.
- strval: Convert a string into an integer.
- strcat: Concatenate two strings into a destination reference.
- strdel: Delete part of a string.