mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-22 07:09:18 -05:00
Update rtext.c
This commit is contained in:
@ -1891,6 +1891,7 @@ void TextAppend(char *text, const char *append, int *position)
|
|||||||
int TextFindIndex(const char *text, const char *search)
|
int TextFindIndex(const char *text, const char *search)
|
||||||
{
|
{
|
||||||
int position = -1;
|
int position = -1;
|
||||||
|
if (text == NULL) return position;
|
||||||
|
|
||||||
char *ptr = (char *)strstr(text, search);
|
char *ptr = (char *)strstr(text, search);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user