From d79531de9b1c128b3c2357fdda19ac1fb9006116 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 29 Aug 2024 23:30:56 +0200 Subject: [PATCH] Fix missing ZString return. --- libraries/raylib5.c3l/raylib.c3i | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/raylib5.c3l/raylib.c3i b/libraries/raylib5.c3l/raylib.c3i index 533fef9..3ba4ba7 100644 --- a/libraries/raylib5.c3l/raylib.c3i +++ b/libraries/raylib5.c3l/raylib.c3i @@ -1479,15 +1479,15 @@ fn bool textIsEqual(ZString text1, ZString text2) @extern("TextIsEqual"); // Get text length, checks for '\0' ending fn uint textLength(ZString text) @extern("TextLength"); // Text formatting with variables (sprintf() style) -fn char* textFormat(ZString text, ...) @extern("TextFormat"); +fn ZString textFormat(ZString text, ...) @extern("TextFormat"); // Get a piece of a text string -fn char* textSubtext(ZString text, int position, int length) @extern("TextSubtext"); +fn ZString textSubtext(ZString text, int position, int length) @extern("TextSubtext"); // Replace text string (WARNING: memory must be freed!) -fn char* textReplace(ZString text, ZString replace, ZString by) @extern("TextReplace"); +fn ZString textReplace(ZString text, ZString replace, ZString by) @extern("TextReplace"); // Insert text in a position (WARNING: memory must be freed!) -fn char* textInsert(ZString text, ZString insert, int position) @extern("TextInsert"); +fn ZString textInsert(ZString text, ZString insert, int position) @extern("TextInsert"); // Join text strings with delimiter -fn char* textJoin(ZString* textList, int count, ZString delimiter) @extern("TextJoin"); +fn ZString textJoin(ZString* textList, int count, ZString delimiter) @extern("TextJoin"); // Split text into multiple strings fn ZString* textSplit(ZString text, char delimiter, int *count) @extern("TextSplit"); // Append text at specific position and move cursor!