Main Page Data Structures File List Data Fields Globals Related Pages

# readline.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
char * | readline (char *s, int n)
| A simple version of the GNU readline function.

## Function Documentation

char* readline | ( | char * | s,
|  | int | n
| ) |

  | A simple version of the GNU readline function. Only the most basic editing functions are implemented. Parameters:
  s | pointer to string to read into
  n | maximum length (including \0)
Returns: pointer to string Bug: there's still a bug when pressing cursor up or down while the history buffer is empty (try it right after the program is started - it will copy garbage to the current line) Definition at line 85 of file readline.cpp. References addline(), getline(), and numlines.