Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Unread a char from in_channel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-26 (02:42)
From: romildo@u...
Subject: Unread a char from in_channel

Is there a function to unread a character from an
input channel. The character would be put back into
the channel, and reread in the next read operation.

Is there a function to look at the next available
character in an input channel without consuming
the character? It would be like input_char, but
the character would not be removed from the channel.
The next input operation on the channel would
still see the character.