Searched refs:tempStr (Results 1 – 5 of 5) sorted by relevance
| /kernel/liteos_a/apps/shell/src/ |
| D | shcmd.c | 56 char *tempStr = (char *)malloc(SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet() local 57 if (tempStr == NULL) { in OsStrSeparateTabStrGet() 61 (void)memset_s(tempStr, SHOW_MAX_LEN << 1, 0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet() 62 shiftStr = tempStr + SHOW_MAX_LEN; in OsStrSeparateTabStrGet() 64 if (strncpy_s(tempStr, SHOW_MAX_LEN - 1, *tabStr, tabStrLen)) { in OsStrSeparateTabStrGet() 65 free(tempStr); in OsStrSeparateTabStrGet() 72 if (OsCmdKeyShift(tempStr, shiftStr, SHOW_MAX_LEN - 1)) { in OsStrSeparateTabStrGet() 73 free(tempStr); in OsStrSeparateTabStrGet() 79 … if ((strlen(shiftStr) == 0) || (tempStr[strlen(tempStr) - 1] != shiftStr[strlen(shiftStr) - 1])) { in OsStrSeparateTabStrGet() 83 free(tempStr); in OsStrSeparateTabStrGet() [all …]
|
| D | shcmdparse.c | 41 char *tempStr = NULL; in OsCmdParseStrdup() local 49 tempStr = newStr; in OsCmdParseStrdup() 58 return tempStr; in OsCmdParseStrdup()
|
| /kernel/liteos_m/components/shell/src/base/ |
| D | shcmdparse.c | 41 CHAR *tempStr = NULL; in OsCmdParseStrdup() local 49 tempStr = newStr; in OsCmdParseStrdup() 58 return tempStr; in OsCmdParseStrdup()
|
| /kernel/liteos_a/shell/full/src/base/ |
| D | shcmdparse.c | 41 CHAR *tempStr = NULL; in OsCmdParseStrdup() local 49 tempStr = newStr; in OsCmdParseStrdup() 58 return tempStr; in OsCmdParseStrdup()
|
| D | shcmd.c | 71 CHAR *tempStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet() local 72 if (tempStr == NULL) { in OsStrSeparateTabStrGet() 76 (VOID)memset_s(tempStr, SHOW_MAX_LEN << 1, 0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet() 77 shiftStr = tempStr + SHOW_MAX_LEN; in OsStrSeparateTabStrGet() 79 if (strncpy_s(tempStr, SHOW_MAX_LEN - 1, *tabStr, tabStrLen)) { in OsStrSeparateTabStrGet() 80 (VOID)LOS_MemFree(m_aucSysMem0, tempStr); in OsStrSeparateTabStrGet() 87 if (OsCmdKeyShift(tempStr, shiftStr, SHOW_MAX_LEN - 1)) { in OsStrSeparateTabStrGet() 88 (VOID)LOS_MemFree(m_aucSysMem0, tempStr); in OsStrSeparateTabStrGet() 94 … if ((strlen(shiftStr) == 0) || (tempStr[strlen(tempStr) - 1] != shiftStr[strlen(shiftStr) - 1])) { in OsStrSeparateTabStrGet() 98 (VOID)LOS_MemFree(m_aucSysMem0, tempStr); in OsStrSeparateTabStrGet() [all …]
|