summaryrefslogtreecommitdiff
path: root/usr.bin/dc/inout.c
AgeCommit message (Expand)Author
2017-11-29simplify print_ascii; from kshe; ok tom@Otto Moerbeek
2017-02-26Move away from BN_zero, the one returning an int is deprecated and theOtto Moerbeek
2015-02-16Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location.Jeremie Courreges-Anglas
2014-12-01more opportunity to use reallocarray(); ok ottoTheo de Raadt
2012-11-07fix fractional number exponentiation, especially for negative exponentsOtto Moerbeek
2012-11-06use BN_set_negative() and BN_is_negative() instead of subtracting orOtto Moerbeek
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2006-01-15delint wrt return values, including some missing BN returnOtto Moerbeek
2005-12-14Fix parsing of non-decimal fractions, which was giving bogus results.Otto Moerbeek
2005-03-29Nicer wrapping. We used to mimick the old dc(1), which printsOtto Moerbeek
2005-03-28Linefeed is part of a line according to POSIX, so take that into accountOtto Moerbeek
2005-03-27Use inclusive bound check for line length, it is more clear.Otto Moerbeek
2005-03-15snprintf(buf, sizeof(buf), "%s", p) is silly, use strlcpy(). From Bruno Rohee.Otto Moerbeek
2003-11-14The BN_add_word() bug has been squashed, so we don't need a workaroundOtto Moerbeek
2003-10-22Make ungetting a char read form a string behave the same as ungettingOtto Moerbeek
2003-10-18err(1, "out of mem") -> err(1, NULL)Otto Moerbeek
2003-09-30Teach dc(1) how to read strings with unbalanced braces by introducingOtto Moerbeek
2003-09-28realloc cleanupOtto Moerbeek
2003-09-19blanksTheo de Raadt
2003-09-19spacesTheo de Raadt
2003-09-19A complete, BSD licensed rewrite of dc(1), using the bn(3) big number routines.Otto Moerbeek