mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
LoadText(): Added comment
This commit is contained in:
@@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName)
|
||||
|
||||
if (textFile != NULL)
|
||||
{
|
||||
// WARNING: When reading a file as 'text' file,
|
||||
// text mode causes carriage return-linefeed translation...
|
||||
// ...but using fseek() should return correct byte-offset
|
||||
fseek(textFile, 0, SEEK_END);
|
||||
int size = ftell(textFile);
|
||||
fseek(textFile, 0, SEEK_SET);
|
||||
|
Reference in New Issue
Block a user