A Command Interpreter with support for used defined commands, subsystems, macros, help and parameter parsing.

Revision:
21:d22068e2bbd1
Parent:
20:62318ba945de
Child:
22:5192a468d7fa
--- a/cmdb.h	Tue Sep 20 18:49:28 2011 +0000
+++ b/cmdb.h	Tue Nov 22 12:41:57 2011 +0000
@@ -499,6 +499,19 @@
      */
     int printsection(const char *section);
 
+      /** printerror prints an inifile Error Section Header and Error Msg Key=Value pair.
+     *  like:
+     *
+     *  [Error]\r\nmsg={errormsg}\r\n
+     *
+     *  Usage: cmdb.printerror("Data Size Incorrect");
+     *
+     *  @parm errormsg the error msg to print.
+     *
+     *  @returns the printf return value.
+     */
+    int printerror(const char *errormsg);
+        
     /** printvalue prints an inifile Key/Value Pair
      *  like:
      *