Please enable JavaScript to view this site.

Function that inserts the passed substring into a target string, from the specified location.

Syntax

i32 str_insert (string strDst, string strKey, i32 pos)

strDst

String into which strKey is inserted

strKey

String that is inserted into strDst

pos

Index of the insertion position.

If pos = 1, inserts at the first position.

If pos is outside the size of strDst, insertion is limited to the first or last character

Result

Returns:

Value

Meaning

<> 0

Operation performed successfully

0

Otherwise

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC