~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to docs/examples/fopen.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070516151654-x9nkigtr2j0i8d0v
Tags: upstream-7.16.2
ImportĀ upstreamĀ versionĀ 7.16.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        /* get file descriptors from the transfers */
154
154
        curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
155
155
 
 
156
        /* In a real-world program you OF COURSE check the return code of the
 
157
           function calls, *and* you make sure that maxfd is bigger than -1
 
158
           so that the call to select() below makes sense! */
 
159
 
156
160
        rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
157
161
 
158
162
        switch(rc) {