Lines Matching defs:len
209 UINT32 len;
217 len = strlen(cmdType);
219 if ((len == strlen(curCmdItem->cmd->cmdKey)) &&
220 (strncmp((CHAR *)(curCmdItem->cmd->cmdKey), cmdType, len) == 0)) {
221 minLen = (len < CMD_KEY_LEN) ? len : CMD_KEY_LEN;
231 STATIC UINT32 ShellMsgNameGetAndExec(CmdParsed *cmdParsed, const CHAR *output, UINT32 len)
237 CHAR *msgName = (CHAR *)LOS_MemAlloc(m_aucSysMem0, len + 1);
244 for (tmpStr = output, loop = 0; (*tmpStr != '\0') && (loop < len);) {
276 UINT32 len, cmdLen, newLen;
287 len = strlen(msg);
289 if ((len > 2) && (buf[0] == '.') && (buf[1] == '/')) {
291 newLen = len + 1 + cmdLen + 1;
299 (VOID)memcpy_s(newMsg + cmdLen + 1, newLen - cmdLen - 1, (CHAR *)msg + 1, len);
301 len = newLen - 1;
303 output = (CHAR *)LOS_MemAlloc(m_aucSysMem0, len + 1);
309 ret = OsCmdKeyShift((CHAR *)msg, output, len + 1);
317 ret = ShellMsgNameGetAndExec(&cmdParsed, output, len);