Skip to content

raylib.TextReplaceAlloc

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Replace text string REQUIRES: strstr(), strncpy() WARNING: Allocated memory must be manually freed

Parameters

Parameter Default Value Note
text
search
replacement

Return value

Condition Return Value
(always) number

Notes

Example

result = raylib.TextReplaceAlloc("Hello World", "World", "MiniScript")
print result   // "Hello MiniScript"

Clone this wiki locally