Changeset 02a99d2 in mainline for src/debug/print.c
- Timestamp:
- 2005-05-11T19:51:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69515260
- Parents:
- 45671f48
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/debug/print.c
r45671f48 r02a99d2 47 47 void print_str(const char *str) 48 48 { 49 49 int i = 0; 50 50 char c; 51 51 52 52 while (c = str[i++]) 53 53 putchar(c); 54 54 } 55 55 … … 85 85 * 86 86 */ 87 void print_number(const __native num, const int base)87 void print_number(const __native num, const unsigned int base) 88 88 { 89 89 int val = num; 90 90 char d[sizeof(__native)*8+1]; /* this is good enough even for base == 2 */ 91 92 91 int i = sizeof(__native)*8-1; 92 93 93 do { 94 94 d[i--] = digits[val % base];
Note:
See TracChangeset
for help on using the changeset viewer.