note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
strunpack
warning
This function starts with a lowercase letter.
Description
This function can be used to unpack a string.
Name | Description |
---|---|
dest[] | The destination string to save the unpacked string in, passed by reference. |
const source[] | The source, original packed string. |
maxlength = sizeof (string) | The maximum size to insert. |
Returns
The number of characters packed.
Examples
new string[17];
new pstring[17 char] = !"Hi, how are you?";
strunpack(string, pstring);
Related Functions
- ispacked: Check if the given string is packed.
- strpack: This function can be used to pack a string.
- 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.
- strpack: Pack a string into a destination string.
- strval: Convert a string into an integer.
- strcat: Concatenate two strings into a destination reference.
- strdel: Delete part of a string.