

Learn more about bidirectional Unicode characters. To review, open the file in an editor that reveals hidden Unicode characters. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. Multiple flags may be set by a single operation. Contribute to racket/racket development by creating an account on GitHub. When set, the integrity of the stream may have been affected. The construction of sentry failed (such as when the stream state was not good before the call).Įrror on stream (such as when this function catches an exception thrown by an internal operation). No character could be peeked because the input sequence has no characters available (end-of-file reached).

This file contains bidirectional Unicode text that. If there are no more characters to read in the input sequence, or if any internal state flags is set, the function returns the end-of-file value ( EOF), and leaves the proper internal state flags set: Formatting, a v s e r pretty-format Input, read read-bytes peek-byte Output, write write-bytes display displayln pretty-print Ports and Files, with-. Contribute to racket/racket development by creating an account on GitHub. The next character in the input sequence, as a value of type int. Then (if good), it reads one character from its associated stream buffer object by calling its member function sgetc, and finally destroys the sentry object before returning.Ĭalling this function sets the value returned by gcount to zero. Internally, the function accesses the input sequence by first constructing a sentry object (with noskipws set to true). If any internal state flags is already set before the call or is set during the call, the function returns the end-of-file value ( EOF). Returns the next character in the input sequence, without extracting it: The character is left as the next character to be extracted from the stream.
