diff options
| author | Ray <[email protected]> | 2020-02-27 13:19:13 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-27 13:19:13 +0100 |
| commit | 245ba2a152c078e1154fb74b2ba224029f2c0a93 (patch) | |
| tree | eda25b1ed13ec6097fbf9936768a8657d541a072 /src | |
| parent | 89ecad1e29c24129ea7de9715afce738a94f9480 (diff) | |
| download | raylib-245ba2a152c078e1154fb74b2ba224029f2c0a93.tar.gz raylib-245ba2a152c078e1154fb74b2ba224029f2c0a93.zip | |
LoadText(): Added comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
