public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da8f912
)
Use fputs instead of printf in perror.c
author
ceriel
<none@none>
Mon, 21 May 1990 10:20:15 +0000
(10:20 +0000)
committer
ceriel
<none@none>
Mon, 21 May 1990 10:20:15 +0000
(10:20 +0000)
lang/cem/libcc.ansi/stdio/perror.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/stdio/perror.c
b/lang/cem/libcc.ansi/stdio/perror.c
index
70055e6
..
962d4bc
100644
(file)
--- a/
lang/cem/libcc.ansi/stdio/perror.c
+++ b/
lang/cem/libcc.ansi/stdio/perror.c
@@
-10,7
+10,10
@@
void
perror(const char *s)
{
- if (s && *s)
- (void) fprintf(stderr,"%s: ", s);
- (void) fprintf(stderr,"%s\n", strerror(errno));
+ if (s && *s) {
+ (void) fputs(s, stderr);
+ (void) fputs(": ", stderr);
+ }
+ (void) fputs(strerror(errno), stderr);
+ (void) fputs("\n", stderr);
}