Skip to content

raylib.TextInsert

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Insert text in a specific position, moves all text forward WARNING: Allocated memory must be manually freed

Parameters

Parameter Default Value Note
text
insert
position

Return value

Condition Return Value
(always) number

Notes

Example

// Insert "Beautiful " at position 6 in "Hello World"
result = raylib.TextInsert("Hello World", "Beautiful ", 6)
print result  // "Hello Beautiful World"

Clone this wiki locally