summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9df9faa)
raw | patch | inline | side by side (parent: 9df9faa)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 2 May 2005 19:33:53 +0000 (19:33 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 2 May 2005 19:33:53 +0000 (19:33 +0000) |
program/src/strftime.c | patch | blob | history |
diff --git a/program/src/strftime.c b/program/src/strftime.c
index f349bbf4e0f4be4c2b3fac120140f209c65a4a6c..3fb860f610ea6c7e6716e820b5253a984d9f8db1 100644 (file)
--- a/program/src/strftime.c
+++ b/program/src/strftime.c
*
*/
-static int pow[5] = { 1, 10, 100, 1000, 10000 };
+static int powers[5] = { 1, 10, 100, 1000, 10000 };
/**
* static void strfmt(char *str, char *fmt);
ival = va_arg(vp, int);
while (ilen)
{
- ival %= pow[ilen--];
- *str++ = (char)('0' + ival / pow[ilen]);
+ ival %= powers[ilen--];
+ *str++ = (char)('0' + ival / powers[ilen]);
}
}
}