Lines Matching refs:buffer
52 char *buffer = NULL; variable
71 buffer = malloc(13);
72 abort_unless(buffer, "Out of memory");
73 Curl_bufref_set(&bufref, buffer, 13, test_free);
75 fail_unless((char *) bufref.ptr == buffer, "Referenced data badly set");
83 fail_unless((char *) Curl_bufref_ptr(&bufref) == buffer,
99 fail_unless((char *) bufref.ptr != buffer, "Returned pointer not set");
100 buffer = (char *) Curl_bufref_ptr(&bufref);
101 fail_unless(buffer, "Allocated pointer is NULL");
103 fail_unless(!buffer[3], "Duplicated data should have been truncated");
104 fail_unless(!strcmp(buffer, "166"), "Bad duplicated data");