~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to docs/examples/multi-debugcallback.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    /* without the hex output, we can fit more on screen */
38
38
    width = 0x40;
39
39
 
40
 
  fprintf(stream, "%s, %010.10ld bytes (0x%08.8lx)\n",
 
40
  fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n",
41
41
          text, (long)size, (long)size);
42
42
 
43
43
  for(i=0; i<size; i+= width) {
44
44
 
45
 
    fprintf(stream, "%04.4lx: ", (long)i);
 
45
    fprintf(stream, "%4.4lx: ", (long)i);
46
46
 
47
47
    if(!nohex) {
48
48
      /* hex not disabled, show it */
79
79
{
80
80
  const char *text;
81
81
 
 
82
  (void)userp;
82
83
  (void)handle; /* prevent compiler warning */
83
84
 
84
85
  switch (type) {
108
109
/*
109
110
 * Simply download a HTTP file.
110
111
 */
111
 
int main(int argc, char **argv)
 
112
int main(void)
112
113
{
113
114
  CURL *http_handle;
114
115
  CURLM *multi_handle;