xs_replace

Syntax

stock xs_replace(text[], len, const what[], const with[])

Usage

text
The text to search in.
len
The maximum size of the @text buffer.
what
What to search for.
with
What to replace occurencies with.

Description

Replaces all occurencies of @what in @text with @with.

Return

Returns the number of replaced items.