length -r (p_string _)
{
  return string->length;
}

length -w (p_string -&w _, int length)
{
  if (length <= string->_)
  {
    string->length = _;
    string->chars[length] = 0;
  }
  else
  {
    error (ERR_ARRAY_BOUNDS);
  }
}
