Mercurial > ecos
diff packages/redboot/current/include/redboot.h @ 130:eb9fd8c04db3 ecos-sw-2000-10-23
Merge from eCos master repository on 2000-10-23-17:01:37-BST
| author | jlarmour |
|---|---|
| date | Mon, 23 Oct 2000 17:10:57 +0000 |
| parents | 0c2b7be0d798 |
| children | 6b5f480c6929 |
line wrap: on
line diff
--- a/packages/redboot/current/include/redboot.h +++ b/packages/redboot/current/include/redboot.h @@ -98,6 +98,7 @@ int strcmp(const char *s1, const char * int strncmp(const char *s1, const char *s2, int len); int strcmpci(const char *s1, const char *s2); int strncmpci(const char *s1, const char *s2, int len); +char *strcpy(char *s1, const char *s2); void mon_write_char(char c); int gets(char *line, int len, int timeout); @@ -159,6 +160,9 @@ struct option_info { #define OPTION_ARG_TYPE_STR 1 // Generic string #define OPTION_ARG_TYPE_FLG 2 // Flag only +// Command line parsing +struct cmd *parse(char *line, int *argc, char **argv); + extern void init_opts(struct option_info *opts, char flag, bool takes_arg, int arg_type, void **arg, bool *arg_set, char *name); extern bool scan_opts(int argc, char *argv[], int first,
