mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 23:38:15 +00:00
TextReplace const correctness (#3678)
* TextReplace const correctness * cleanup
This commit is contained in:
@@ -1514,7 +1514,7 @@ const char *TextSubtext(const char *text, int position, int length)
|
||||
// Replace text string
|
||||
// REQUIRES: strlen(), strstr(), strncpy(), strcpy()
|
||||
// WARNING: Allocated memory must be manually freed
|
||||
char *TextReplace(char *text, const char *replace, const char *by)
|
||||
char *TextReplace(const char *text, const char *replace, const char *by)
|
||||
{
|
||||
// Sanity checks and initialization
|
||||
if (!text || !replace || !by) return NULL;
|
||||
|
Reference in New Issue
Block a user