Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change close to also raise exn on bad fd input.
fgetc doesn't raise an exception on fd input and just returns NONE. This is sort of consistent with the way fgetc on Unix will return -1 on a stream that is in an error state.
- Loading branch information
Showing
2 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters