Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: nucleo_ucmd_helloworld
ucCmdLineToks.c@0:9e2fc73e5a12, 2015-10-12 (annotated)
- Committer:
- kyourek
- Date:
- Mon Oct 12 21:09:07 2015 +0000
- Revision:
- 0:9e2fc73e5a12
Initial commit of the ucmd library for mbed.; https://github.com/kyourek/ucmd
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kyourek | 0:9e2fc73e5a12 | 1 | #include "ucmd_internal.h" |
| kyourek | 0:9e2fc73e5a12 | 2 | |
| kyourek | 0:9e2fc73e5a12 | 3 | ucCmdTok *ucCmdLineToks_get_cmd_tok(ucCmdLineToks *p) { |
| kyourek | 0:9e2fc73e5a12 | 4 | if (NULL == p) return NULL; |
| kyourek | 0:9e2fc73e5a12 | 5 | return p->cmd_tok; |
| kyourek | 0:9e2fc73e5a12 | 6 | } |
| kyourek | 0:9e2fc73e5a12 | 7 | |
| kyourek | 0:9e2fc73e5a12 | 8 | ucArgTok *ucCmdLineToks_get_arg_tok(ucCmdLineToks *p) { |
| kyourek | 0:9e2fc73e5a12 | 9 | if (NULL == p) return NULL; |
| kyourek | 0:9e2fc73e5a12 | 10 | return p->arg_tok; |
| kyourek | 0:9e2fc73e5a12 | 11 | } |
| kyourek | 0:9e2fc73e5a12 | 12 | |
| kyourek | 0:9e2fc73e5a12 | 13 | ucSwitchTok *ucCmdLineToks_get_switch_tok(ucCmdLineToks *p) { |
| kyourek | 0:9e2fc73e5a12 | 14 | if (NULL == p) return NULL; |
| kyourek | 0:9e2fc73e5a12 | 15 | return p->switch_tok; |
| kyourek | 0:9e2fc73e5a12 | 16 | } |
| kyourek | 0:9e2fc73e5a12 | 17 |