diff options
author | Roland McGrath <roland@gnu.org> | 1992-10-20 01:40:59 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-10-20 01:40:59 +0000 |
commit | 0f65a955e615608cd7a0cbd534510fb51b21208d (patch) | |
tree | 9512d5e3ca31bf66923a98f4b8ff69c262f8e5cf /manual/examples | |
parent | ff77ed0cebf2ad8f94fff130383b04c07c9f0055 (diff) |
Use the glorious += operator.
Diffstat (limited to 'manual/examples')
-rw-r--r-- | manual/examples/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/add.c b/manual/examples/add.c index cb37b2b435..e4b1bba365 100644 --- a/manual/examples/add.c +++ b/manual/examples/add.c @@ -11,7 +11,7 @@ add_em_up (int count,...) sum = 0; for (i = 0; i < count; i++) - sum = sum + va_arg (ap, int); /* Get the next argument value. */ + sum += va_arg (ap, int); /* Get the next argument value. */ va_end (ap); /* Clean up. */ return sum; |