Ken Yourek / ucmd

Dependents:   nucleo_ucmd_helloworld

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ucCmdLineToks.c Source File

ucCmdLineToks.c

00001 #include "ucmd_internal.h"
00002 
00003 ucCmdTok *ucCmdLineToks_get_cmd_tok(ucCmdLineToks *p) {
00004     if (NULL == p) return NULL;
00005     return p->cmd_tok;
00006 }
00007 
00008 ucArgTok *ucCmdLineToks_get_arg_tok(ucCmdLineToks *p) {
00009     if (NULL == p) return NULL;
00010     return p->arg_tok;
00011 }
00012 
00013 ucSwitchTok *ucCmdLineToks_get_switch_tok(ucCmdLineToks *p) {
00014     if (NULL == p) return NULL;
00015     return p->switch_tok;
00016 }
00017