Next Previous Up Top Contents Index

17 The STREAM package

stream-peek-char

Generic Function

Summary

A generic function used bypeek-char that returns a character on a given stream without removing it from the stream buffer.
Package

stream

Signature

stream-peek-char stream => result

Arguments

stream

A stream.

Values

result

A character or:EOF symbol.

Description

The generic functionstream-peek-char is used to implementpeek-char, and corresponds to a peek-type ofnil. The default method reads a character from the stream without removing it from the stream buffer, by usingstream-read-char andstream-unread-char.
See also

stream-listen
stream-read-char
stream-unread-char

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker