Skip to content
Snippets Groups Projects
Commit b1cd033c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

made the test-program in the bottom compile/build, remember to link with

strequal.o as well!
parent 26886731
No related branches found
No related tags found
No related merge requests found
......@@ -634,11 +634,16 @@ int main(int argc, char **argv)
form=Curl_getFormData(httppost, &size);
FormInit(&formread, form);
Curl_FormInit(&formread, form);
while(nread = FormReader(buffer, 1, sizeof(buffer), (FILE *)&formread)) {
do {
nread = Curl_FormReader(buffer, 1, sizeof(buffer),
(FILE *)&formread);
if(-1 == nread)
break;
fwrite(buffer, nread, 1, stderr);
}
} while(1);
fprintf(stderr, "size: %d\n", size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment