version 1.13, 2001/09/16 02:30:23 |
version 1.14, 2002/02/07 07:00:11 |
|
|
.Sh LIBRARY |
.Sh LIBRARY |
.Lb libc |
.Lb libc |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Fd #include <err.h> |
.Fd #include \*[Lt]err.h\*[Gt] |
.Ft void |
.Ft void |
.Fn err "int status" "const char *fmt" "..." |
.Fn err "int status" "const char *fmt" "..." |
.Ft void |
.Ft void |
Line 121 if ((fd = open(file_name, O_RDONLY, 0)) |
|
Line 121 if ((fd = open(file_name, O_RDONLY, 0)) |
|
.Pp |
.Pp |
Display an error message and terminate with status indicating failure: |
Display an error message and terminate with status indicating failure: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
if (tm.tm_hour < START_TIME) |
if (tm.tm_hour \*[Lt] START_TIME) |
errx(EXIT_FAILURE, "too early, wait until %s", |
errx(EXIT_FAILURE, "too early, wait until %s", |
start_time_string); |
start_time_string); |
.Ed |
.Ed |