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
ucCmdTok.c
00001 #include "ucmd_internal.h" 00002 00003 ucArgTok *ucCmdTok_get_arg(ucCmdTok *p) { 00004 return ucArgTokOwner_get_arg((ucArgTokOwner*)p); 00005 } 00006 00007 ucSwitchTok *ucCmdTok_get_switch(ucCmdTok *p) { 00008 ucTok *tok; 00009 if (NULL == p) return NULL; 00010 tok = ucTok_get_next((ucTok*)p); 00011 while (NULL != tok) { 00012 if (ucTok_is_switch(tok)) { 00013 return (ucSwitchTok*)tok; 00014 } 00015 tok = ucTok_get_next(tok); 00016 } 00017 return NULL; 00018 } 00019
Generated on Thu Jul 14 2022 20:04:57 by
1.7.2