Lines Matching refs:cp
123 char *cp; in get_buffer() local
149 cp = realloc(buf->buf, size); in get_buffer()
150 if(cp) { in get_buffer()
151 buf->buf = cp; in get_buffer()
155 cp = buf->buf; in get_buffer()
157 return cp; in get_buffer()
235 char *cp; in set_thread_string() local
241 cp = Curl_thread_buffer(key, MAX_CONV_EXPANSION * i + 1); in set_thread_string()
243 if(cp) { in set_thread_string()
244 i = QadrtConvertE2A(cp, s, MAX_CONV_EXPANSION * i, i); in set_thread_string()
245 cp[i] = '\0'; in set_thread_string()
248 return cp; in set_thread_string()
663 char *cp; in Curl_ldap_get_values_len_a() local
666 cp = (char *) NULL; in Curl_ldap_get_values_len_a()
671 cp = malloc(i + 1); in Curl_ldap_get_values_len_a()
672 if(!cp) { in Curl_ldap_get_values_len_a()
678 QadrtConvertA2E(cp, attr, i, i); in Curl_ldap_get_values_len_a()
679 cp[i] = '\0'; in Curl_ldap_get_values_len_a()
682 result = ldap_get_values_len(ld, entry, cp); in Curl_ldap_get_values_len_a()
683 free(cp); in Curl_ldap_get_values_len_a()
701 char *cp; in Curl_ldap_get_dn_a() local
704 cp = ldap_get_dn(ld, entry); in Curl_ldap_get_dn_a()
706 if(!cp) in Curl_ldap_get_dn_a()
707 return cp; in Curl_ldap_get_dn_a()
709 i = strlen(cp); in Curl_ldap_get_dn_a()
715 QadrtConvertE2A(cp2, cp, i, i); in Curl_ldap_get_dn_a()
722 strcpy(cp, cp2); in Curl_ldap_get_dn_a()
724 return cp; in Curl_ldap_get_dn_a()
732 char *cp; in Curl_ldap_first_attribute_a() local
735 cp = ldap_first_attribute(ld, entry, berptr); in Curl_ldap_first_attribute_a()
737 if(!cp) in Curl_ldap_first_attribute_a()
738 return cp; in Curl_ldap_first_attribute_a()
740 i = strlen(cp); in Curl_ldap_first_attribute_a()
746 QadrtConvertE2A(cp2, cp, i, i); in Curl_ldap_first_attribute_a()
753 strcpy(cp, cp2); in Curl_ldap_first_attribute_a()
755 return cp; in Curl_ldap_first_attribute_a()
763 char *cp; in Curl_ldap_next_attribute_a() local
766 cp = ldap_next_attribute(ld, entry, berptr); in Curl_ldap_next_attribute_a()
768 if(!cp) in Curl_ldap_next_attribute_a()
769 return cp; in Curl_ldap_next_attribute_a()
771 i = strlen(cp); in Curl_ldap_next_attribute_a()
777 QadrtConvertE2A(cp2, cp, i, i); in Curl_ldap_next_attribute_a()
784 strcpy(cp, cp2); in Curl_ldap_next_attribute_a()
786 return cp; in Curl_ldap_next_attribute_a()