*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> perror (3)              



NAME    [Toc]    [Back]

       perror - Write a message explaining the current setting of

SYNOPSIS    [Toc]    [Back]

       #include <stdio.h>

       void perror(
               const char *string );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       perror():  ISO C, POSIX.1, XPG4, XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Points to a string containing the name of the program that
       caused the error.

DESCRIPTION    [Toc]    [Back]

       The  perror()  function  writes  a message on the standard
       error stream that describes the  current  setting  of  the
       external  variable  errno.  The error message includes the
       string pointed to by the string parameter, followed by a :
       (colon), a blank, the system message string, and a newline
       character. The string parameter string should point to the
       name of the program that caused the error.

       To  get  the system error message string for use by a program,
 as opposed to displaying it on standard  error,  use
       the  strerror()  function.  For more information, see strerror(3).

SEE ALSO    [Toc]    [Back]

       Routines: printf(3), strerror(3)

       Standards: standards(5)

[ Back ]
 Similar pages
Name OS Title
strerror_r Tru64 Access message explaining function error
strerror Tru64 Access message explaining function error
wall Linux write a message to users
wall FreeBSD write a message to users
wall OpenBSD write a message to users
wall HP-UX write message to all users
TIFFWriteDirectory IRIX write the current directory in an open TIFF file
zwritemask IRIX specifies a write mask for the z-buffer of the current framebuffer
fs_async HP-UX enables write calls to return before write operation is complete (Boolean)
iplang IRIX changes a user's locale setting.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service