diff options
author | biouman <biouman> | 2001-05-01 13:15:06 +0000 |
---|---|---|
committer | biouman <biouman> | 2001-05-01 13:15:06 +0000 |
commit | 5728d2b6a023b3f71be74bfcafd5ea6b920df943 (patch) | |
tree | 3a0510ca85c6ca2a85d28f5479a557c3149564f7 /lib/polynom.c | |
parent | 64d48fffcab0f9d1213c63a0418f449b0ddab793 (diff) |
*** empty log message ***
Diffstat (limited to 'lib/polynom.c')
-rw-r--r-- | lib/polynom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/polynom.c b/lib/polynom.c index 837df56..84eea37 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -269,9 +269,10 @@ double ply_valuation(polynome poly, double point) char *ply_affichage(polynome poly) { /* routine d'affichage d'un polynome */ - static char buf[BUFSIZ] = { 0 }, temp[BUFSIZ]; + static char buf[BUFSIZ], temp[BUFSIZ]; int count = 0; + buf[0] = '0'; while (poly) { if (poly->degre != 0) { sprintf(temp, "%s*%s^%u ", rat_to_string(poly->coef), mute, poly->degre); |