English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.