This function starts with lowercase letter.


This function can be used to unpack a string.

dest[]The destination string to save the unpacked string in, passed by reference.
const source[]The source, original packed string.
maxlength=sizeof stringThe maximum size to insert.


The number of characters packed.


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.
  • strtok: Get the next 'token' (word/parameter) in 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.
  • strcat: Concatenate two strings into a destination reference.
  • strdel: Delete part of a string.