A Command Interpreter with support for used defined commands, subsystems, macros, help and parameter parsing.
Diff: cmdb.cpp
- Revision:
- 21:d22068e2bbd1
- Parent:
- 20:62318ba945de
- Child:
- 22:5192a468d7fa
--- a/cmdb.cpp Tue Sep 20 18:49:28 2011 +0000 +++ b/cmdb.cpp Tue Nov 22 12:41:57 2011 +0000 @@ -275,6 +275,11 @@ return printf("[%s]\r\n", section); } +int printerror(const char *errormsg) { + printsection("Error"); + printf("Msg=%s\r\n", errormsg); +} + int Cmdb::printvaluef(const char *key, const char *format, ...) { char buf[256];