Get buffer contents

next up previous contents index
Next: Change buffer contents Up: Functions Previous: Change position

Get buffer contents



  int current_char();

Returns the current character ascii code, that means the code of the character at the current position. Returns 0 at end of file or when the buffer is empty.


   int the_char(int nth);

Returns the ascii code of the nth character of the buffer, 0 for illegal position or at end of file. the\_char definition is equivalent to:


  int next_char();

Returns the next character ascii code, 0 if the current position or the next one is the end of file, or if the buffer is empty. next\_char definition is equivalent to:


  int previous_char();

Returns the previous character ascii code, or 0 at the beginning of the file or if the buffer is empty.

Lionel Fournigault
Mon Mar 6 13:33:34 MET 1995