/[mailutils]/mailutils/examples/base64.c
ViewVC logotype

Diff of /mailutils/examples/base64.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by polak, Sun Dec 29 12:52:06 2002 UTC revision 1.4 by gray, Sat Jan 18 15:00:39 2003 UTC
# Line 90  main (int argc, char * argv []) Line 90  main (int argc, char * argv [])
90          {          {
91            char outbuf[24];            char outbuf[24];
92            sprintf (outbuf, "\\%03o", (unsigned int) buffer);            sprintf (outbuf, "\\%03o", (unsigned int) buffer);
93            stream_write (out, outbuf, strlen (outbuf), total, NULL);            stream_sequential_write (out, outbuf, strlen (outbuf));
94          }          }
95        else        else
96          stream_write (out, &buffer, size, total, NULL);          stream_sequential_write (out, &buffer, size);
97        total += size;        total += size;
98      }      }
99    
100    stream_write (out, "\n", 1, total, NULL);    stream_sequential_write (out, "\n", 1);
101    stream_close (in);    stream_close (in);
102    stream_close (out);    stream_close (out);
103    if (verbose)    if (verbose)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26