Ken Yourek / ucmd

Dependents:   nucleo_ucmd_helloworld

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ucArgTokOwner.c Source File

ucArgTokOwner.c

00001 #include "ucmd_internal.h"
00002 
00003 ucArgTok *ucArgTokOwner_get_arg(ucArgTokOwner *p) {
00004     ucTok* tok;
00005     if (NULL == p) return NULL;
00006 
00007     tok = ucTok_get_next((ucTok*)p);
00008     if (ucTok_is_switch(tok)) return NULL;
00009 
00010     return (ucArgTok*)tok;
00011 }
00012