summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2019-07-22 21:29:50 +0200
committerRay <[email protected]>2019-07-22 21:29:50 +0200
commit632d064b21b6c3f2d092f016d1380b625184966a (patch)
treee5a56006063d777a0dfd33a80f1236aa638ec5a3 /src/raylib.h
parentbc3983a3dd48fc72f84ecb19e2f3bc50423c777a (diff)
downloadraylib-632d064b21b6c3f2d092f016d1380b625184966a.tar.gz
raylib-632d064b21b6c3f2d092f016d1380b625184966a.zip
Review text functions return value
It needs to be freed
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index c3be9d1e..d28dffdb 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1186,8 +1186,8 @@ RLAPI unsigned int TextLength(const char *text);
RLAPI unsigned int TextCountCodepoints(const char *text); // Get total number of characters (codepoints) in a UTF8 encoded string
RLAPI const char *TextFormat(const char *text, ...); // Text formatting with variables (sprintf style)
RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string
-RLAPI const char *TextReplace(char *text, const char *replace, const char *by); // Replace text string (memory should be freed!)
-RLAPI const char *TextInsert(const char *text, const char *insert, int position); // Insert text in a position (memory should be freed!)
+RLAPI char *TextReplace(char *text, const char *replace, const char *by); // Replace text string (memory should be freed!)
+RLAPI char *TextInsert(const char *text, const char *insert, int position); // Insert text in a position (memory should be freed!)
RLAPI const char *TextJoin(const char **textList, int count, const char *delimiter); // Join text strings with delimiter
RLAPI const char **TextSplit(const char *text, char delimiter, int *count); // Split text into multiple strings
RLAPI void TextAppend(char *text, const char *append, int *position); // Append text at specific position and move cursor!