Changeset ba276f7 in mainline for generic/src/lib/func.c


Ignore:
Timestamp:
2005-12-11T22:39:11Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96c939e
Parents:
3550c393
Message:

Added set4 command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/lib/func.c

    r3550c393 rba276f7  
    141141
    142142        while (*text) {
    143                 if (base != 16 && *text >= 'A' && *text <= 'F')
     143                if (base != 16 && \
     144                    ((*text >= 'A' && *text <= 'F' )
     145                     || (*text >='a' && *text <='f')))
    144146                        break;
    145147                if (base == 8 && *text >='8')
     
    152154                        result *= base;
    153155                        result += *text - 'A' + 10;
     156                } else if (*text >= 'a' && *text <= 'f') {
     157                        result *= base;
     158                        result += *text - 'a' + 10;
    154159                } else
    155160                        break;
Note: See TracChangeset for help on using the changeset viewer.