uCmd
Simple command parser for microcontrollers
ucmd.h
Go to the documentation of this file.
00001 
00013 #ifndef _UCMD_H_
00014 #define _UCMD_H_
00015 
00016 #include <limits.h>
00017 
00019 #define UCMD_CMD_NOT_FOUND INT_MIN
00020 
00022 #define UCMD_DEFAULT_DELIMETER " "
00023 
00033 typedef int (*Command_cb)(int, char *[]);
00034 
00036 typedef struct Command {
00037     const char *cmd;                
00038     const char *help;                 
00039     Command_cb fn;             
00040 } Command;
00041 
00042 int ucmd_parse(Command [], const char *, const char *);
00043 
00044 #endif /* _UCMD_H_ */
 All Data Structures Files Functions Variables Typedefs Defines