File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
25422542ifdef([[[NOSPELLCHECK]]], [[[
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
25602560easy to work with and save you some lines of code. More complex
25612561app\- li\- ca\- tions often use their own logging functions.
You can’t perform that action at this time.
0 commit comments