Searched refs:newStr (Results 1 – 3 of 3) sorted by relevance
42 char *newStr = NULL; in OsCmdParseStrdup() local44 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()
42 CHAR *newStr = NULL; in OsCmdParseStrdup() local44 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()