stock

xs_replace

Syntax

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

Description

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

Parameters

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.

Return

Returns the number of replaced items.