get the errno value
Some checks failed
MVS Delete Members / delete-members (push) Failing after 13s
MVS Submit & Execute / upload-and-run (push) Successful in 55s

This commit is contained in:
Greg Gauthier 2026-02-08 14:59:34 +00:00
parent cf443e62b5
commit 78ea32b3d9
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <errno.h>
#define BUFFER_SIZE 256
@ -18,7 +19,7 @@ int main()
if (fp == NULL)
{
perror("fopen failed.");
printf("errno = %d\n", errno);
printf("errno = %d\n", __errno());
return 1;
}