Skip to content

Commit 59d45f0

Browse files
committed
Minor changes in the err(3) slide.
1 parent 59efa80 commit 59d45f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intro.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@
25362536
\item prints a program name, your formatted string, and error message based on
25372537
\texttt{errno}
25382538
\item exits the program with \emph{status} return value
2539-
\item use \funnm{errx}() if \texttt{errno} is not expected to be set
2539+
\item use \funnm{errx}() if \texttt{errno} is not set
25402540
\end{itemize}
25412541
\item
25422542
ifdef([[[NOSPELLCHECK]]], [[[
@@ -2554,8 +2554,8 @@
25542554

25552555
\begin{itemize}
25562556
\label{ERR}
2557-
\item The third widely used function is \funnm{errx}() which behaves as
2558-
\funnm{err}() but does not use \texttt{errno}. Similarly, \funnm{warnx}().
2557+
\item The \funnm{errx}() function behaves as \funnm{err}() but does not use
2558+
\texttt{errno} to print that extra error message. Similarly, \funnm{warnx}().
25592559
\item These functions are very handy especially for smaller programs as they are
25602560
easy to work with and save you some lines of code. More complex
25612561
app\-li\-ca\-tions often use their own logging functions.

0 commit comments

Comments
 (0)