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
Diff: ucArgTokOwner.c
- Revision:
- 0:9e2fc73e5a12
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ucArgTokOwner.c Mon Oct 12 21:09:07 2015 +0000
@@ -0,0 +1,12 @@
+#include "ucmd_internal.h"
+
+ucArgTok *ucArgTokOwner_get_arg(ucArgTokOwner *p) {
+ ucTok* tok;
+ if (NULL == p) return NULL;
+
+ tok = ucTok_get_next((ucTok*)p);
+ if (ucTok_is_switch(tok)) return NULL;
+
+ return (ucArgTok*)tok;
+}
+