stock

xs_replace_char

Syntax

stock xs_replace_char(text[], len, what, with)

Description

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

Parameters

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

Return

The number of replaced characters.