Home
last modified time | relevance | path

Searched refs:newStr (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshcmdparse.c42 char *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (char *)malloc(strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()
/kernel/liteos_a/shell/full/src/base/
Dshcmdparse.c42 CHAR *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()
/kernel/liteos_m/components/shell/src/base/
Dshcmdparse.c42 CHAR *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()