Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ec07a37e
...
ec07a37ec3be09ef1993335d9c96907014b763dc
authored
2003-01-18 15:00:39 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use sequential access for the output stream
1 parent
cae52d8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
examples/base64.c
examples/base64.c
View file @
ec07a37
...
...
@@ -90,14 +90,14 @@ main (int argc, char * argv [])
{
char
outbuf
[
24
];
sprintf
(
outbuf
,
"
\\
%03o"
,
(
unsigned
int
)
buffer
);
stream_
write
(
out
,
outbuf
,
strlen
(
outbuf
),
total
,
NULL
);
stream_
sequential_write
(
out
,
outbuf
,
strlen
(
outbuf
)
);
}
else
stream_
write
(
out
,
&
buffer
,
size
,
total
,
NULL
);
stream_
sequential_write
(
out
,
&
buffer
,
size
);
total
+=
size
;
}
stream_
write
(
out
,
"
\n
"
,
1
,
total
,
NULL
);
stream_
sequential_write
(
out
,
"
\n
"
,
1
);
stream_close
(
in
);
stream_close
(
out
);
if
(
verbose
)
...
...
Please
register
or
sign in
to post a comment