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

Get buffer contents

 

current_char

  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.

the_char

   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. thechar definition is equivalent to:


tabular2075

next_char

  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. nextchar definition is equivalent to:
tabular2084

previous_char

  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
Wed Apr 30 10:44:37 MET DST 1997