mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
add errsym builtin function
NOTE: errstr was renamed to errsym. Added errsym builtin function. The errsym(errnum | "E_STRING") builtin, , when given a valid integer errnum that corresponds to a calc error condition, will return an E_STRING string, AND when given a valid E_STRING string that is associated with a calc error condition, will return errnum integer that corresponds to a calc error condition. Supplying a non-integer numeric errnum code to error(), errno(), strerror(), or errsym() will result in an error.
This commit is contained in:
@@ -206,7 +206,7 @@ DETAIL_HELP= abs access acos acosh acot acoth acovercos acoversin \
|
||||
calcpath catalan ceil cfappr cfsim char cmdbuf cmp comb conj cos cosh \
|
||||
cot coth count covercos coversin cp csc csch ctime d2dm d2dms d2g d2r \
|
||||
delete den dereference det digit digits display dms2d dp epsilon \
|
||||
errcount errmax errno error errstr estr euler eval exp fact factor \
|
||||
errcount errmax errno error errsym estr euler eval exp fact factor \
|
||||
fclose fcnt feof ferror fflush fgetc fgetfield fgetfile fgetline fgets \
|
||||
fgetstr fib files floor fopen forall fpathopen fprintf fputc fputs \
|
||||
fputstr frac free freebernoulli freeeuler freeglobals freeredc \
|
||||
|
Reference in New Issue
Block a user