~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to docs/examples/fopen.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
#include <stdio.h>
47
47
#include <string.h>
48
 
#include <sys/time.h>
 
48
#ifndef WIN32
 
49
#  include <sys/time.h>
 
50
#endif
49
51
#include <stdlib.h>
50
52
#include <errno.h>
51
53
 
219
221
    URL_FILE *file;
220
222
    (void)operation;
221
223
 
222
 
    file = (URL_FILE *)malloc(sizeof(URL_FILE));
 
224
    file = malloc(sizeof(URL_FILE));
223
225
    if(!file)
224
226
        return NULL;
225
227