diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 2a3f72f3b..ee94f85d2 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2594,7 +2594,10 @@ when not defined(JS): #and not defined(nimscript): ## Closes the file. proc endOfFile*(f: File): bool {.tags: [], benign.} - ## Returns true iff `f` is at the end. + ## Returns true if `f` is at the end. + + proc fileError*(f: File): bool {.tags: [], benign.} + ## Returns true if the error indicator of `f` is set. proc readChar*(f: File): char {. importc: "fgetc", header: "<stdio.h>", tags: [ReadIOEffect].} |