Enhanced version of Simon Ford's RPC demo program allowing command-line editing and providing interactive help. Includes Stream (Serial, etc.) line editing routine in separate files.
Diff: getline.h
- Revision:
- 0:ec7de5c0199f
diff -r 000000000000 -r ec7de5c0199f getline.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/getline.h Wed Feb 10 15:34:58 2010 +0000 @@ -0,0 +1,5 @@ + mbed_save_all(callback); +} +// receive a line from a stream, allowing backspace editing, +// and checking for buffer overflow. Terminates on either a \n or \r. +extern size_t getline(Stream &s, char *buf, size_t bufsize); \ No newline at end of file