mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-09 08:28:33 +01:00
tests/example.c: Use errno = ENOMEM.
The output from errno = 0 is less portable.
This commit is contained in:
@@ -32,7 +32,7 @@ int main(int argc, char **argv unused) {
|
||||
printf("write to stdout\n");
|
||||
fflush(stdout);
|
||||
|
||||
errno = 0;
|
||||
errno = ENOMEM;
|
||||
perror("error!");
|
||||
|
||||
write(STDERR_FILENO, "write to stderr 2", 17);
|
||||
|
||||
Reference in New Issue
Block a user