#Errno Perror

4 messages · Page 1 of 1 (latest)

torn nebula
#

Hi guys could someone explain to me what perror() does?

I know errno is global variable:

hazy lanceBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

simple juniper
#

!man perror(3)

hazy lanceBOT
#

perror - print a system error message

Synopsis
#include <stdio.h>

void perror(const char *s);

#include <errno.h>

const char *const sys_errlist[];
int sys_nerr;
int errno;       /* Not really declared this way; see errno(3) */

Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

sys_errlist, sys_nerr:

... (truncated)