xs_strtrim

Syntax

stock xs_strtrim(stringtotrim[], charstotrim, bool:fromleft = true)

Usage

stringtotrim
The string to be trimmed.
charstostrim
The number of characters to trim.
fromleft
If set to true, the string will be trimmer from the left.
If false, it will be trimmed from the right.

Description

Remove @charstotrim number of characters from @stringtotrim,
either from the beginning or the end of the string.

Return

This function has no return value.