Skip to content

raylib.TextInsertAlloc

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

result = raylib.TextInsertAlloc("Hello World", " Beautiful", 5)
print result   // "Hello Beautiful World"

Clone this wiki locally