From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/io%2Fperror.html | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 devdocs/c/io%2Fperror.html (limited to 'devdocs/c/io%2Fperror.html') diff --git a/devdocs/c/io%2Fperror.html b/devdocs/c/io%2Fperror.html deleted file mode 100644 index 914c9153..00000000 --- a/devdocs/c/io%2Fperror.html +++ /dev/null @@ -1,36 +0,0 @@ -

perror

Defined in header <stdio.h>
void perror( const char *s );
-

Prints a textual description of the error code currently stored in the system variable errno to stderr.

-

The description is formed by concatenating the following components:

-

Parameters

- -
s - pointer to a null-terminated string with explanatory message

Return value

(none)

-

Example

#include <stdio.h>
- 
-int main(void)
-{
-    FILE *f = fopen("non_existent", "r");
-    if (f == NULL) {
-        perror("fopen() failed");
-    } else {
-        fclose(f);
-    }
-}

Possible output:

-
fopen() failed: No such file or directory

References

See also

- -
-
(C11)(C11)
returns a text version of a given error code
(function)
C++ documentation for perror
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/io/perror -

-
-- cgit v1.2.3