Lines Matching refs:cp
329 char *cp; in StrDup() local
331 if (NULL == (cp = strdup(str ? str : ""))) in StrDup()
336 return cp; in StrDup()
351 char *cp; in StrNDup() local
353 cp = Calloc(len + 1); in StrNDup()
355 (void)strncpy(cp, str, len); in StrNDup()
356 return cp; in StrNDup()
376 char *cp; in StrCatDup() local
381 cp = Calloc(len1 + len2 + 1); in StrCatDup()
384 (void)strcpy(cp, str1); in StrCatDup()
386 (void)strcat(cp, str2); in StrCatDup()
388 return cp; in StrCatDup()
402 void *cp; in Calloc() local
404 if (NULL == (cp = calloc(1, size))) in Calloc()
409 return cp; in Calloc()