mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2026-03-10 08:41:44 +01:00
Hook perror(3).
This commit is contained in:
@@ -28,6 +28,9 @@ int main(int argc, char **argv) {
|
||||
printf("write to stdout\n");
|
||||
fflush(stdout);
|
||||
|
||||
errno = 0;
|
||||
perror("error!");
|
||||
|
||||
write(STDERR_FILENO, "write to stderr 2", 17);
|
||||
write(STDOUT_FILENO, "write to stdout 2", 17);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user