Skip to content

Commit 7c1b8e9

Browse files
committed
add const qualifier to the first arg of TextJoin
1 parent 0e73e0e commit 7c1b8e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/raylib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ RLAPI const char *TextFormat(const char *text, ...);
15151515
RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string
15161516
RLAPI char *TextReplace(const char *text, const char *replace, const char *by); // Replace text string (WARNING: memory must be freed!)
15171517
RLAPI char *TextInsert(const char *text, const char *insert, int position); // Insert text in a position (WARNING: memory must be freed!)
1518-
RLAPI char *TextJoin(char **textList, int count, const char *delimiter); // Join text strings with delimiter
1518+
RLAPI char *TextJoin(const char **textList, int count, const char *delimiter); // Join text strings with delimiter
15191519
RLAPI char **TextSplit(const char *text, char delimiter, int *count); // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
15201520
RLAPI void TextAppend(char *text, const char *append, int *position); // Append text at specific position and move cursor!
15211521
RLAPI int TextFindIndex(const char *text, const char *find); // Find first text occurrence within a string, -1 if not found

src/rtext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ char *TextInsert(const char *text, const char *insert, int position)
16841684

16851685
// Join text strings with delimiter
16861686
// REQUIRES: memset(), memcpy()
1687-
char *TextJoin(char **textList, int count, const char *delimiter)
1687+
char *TextJoin(const char **textList, int count, const char *delimiter)
16881688
{
16891689
static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
16901690
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);

0 commit comments

Comments
 (0)