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

« back to all changes in this revision

Viewing changes to docs/examples/debug.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:
28
28
    /* without the hex output, we can fit more on screen */
29
29
    width = 0x40;
30
30
 
31
 
  fprintf(stream, "%s, %010.10ld bytes (0x%08.8lx)\n",
 
31
  fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n",
32
32
          text, (long)size, (long)size);
33
33
 
34
34
  for(i=0; i<size; i+= width) {
35
35
 
36
 
    fprintf(stream, "%04.4lx: ", (long)i);
 
36
    fprintf(stream, "%4.4lx: ", (long)i);
37
37
 
38
38
    if(!nohex) {
39
39
      /* hex not disabled, show it */