Lines Matching refs:cp
30 char *cp; in StrDup() local
32 if (NULL == (cp = strdup(str ? str : ""))) in StrDup()
37 return cp; in StrDup()
52 char *cp; in StrNDup() local
54 cp = Calloc(len + 1); in StrNDup()
56 (void)strncpy(cp, str, len); in StrNDup()
57 return cp; in StrNDup()
77 char *cp; in StrCatDup() local
82 cp = Calloc(len1 + len2 + 1); in StrCatDup()
85 (void)strcpy(cp, str1); in StrCatDup()
87 (void)strcat(cp, str2); in StrCatDup()
89 return cp; in StrCatDup()
103 void *cp; in Calloc() local
105 if (NULL == (cp = calloc(1, size))) in Calloc()
110 return cp; in Calloc()
145 void *cp; in Realloc() local
147 cp = Calloc(size); in Realloc()
150 strcpy(cp, buffer); in Realloc()
153 return cp; in Realloc()