2 errcount - return or set the internal error count
13 An internal variable keeps count of the number of functions
14 evaluating to an error value either internally or by a call to
15 error() or newerror().
17 The errcount() with no args returns the current error count. Calling
18 errcount(num) returns the current error count and resets it to num.
20 If the count exceeds the current value of errmax, execution is aborted
21 with a message displaying the errno for the error.
23 If an error value is assigned to a variable as in:
27 then a function returning that variable does not contribute to
35 > a = 1/0; b = 2 + ""; c = error(27); d = newerror("a");
36 > print errcount(), a, errcount(), errmax();
46 errmax, error, strerror, iserror, errno, newerror, errorcodes