Changeset 7f1c620 in mainline for generic/src/lib/func.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/lib/func.c
r991779c5 r7f1c620 149 149 } 150 150 151 /** Convert ascii representation to __native151 /** Convert ascii representation to unative_t 152 152 * 153 153 * Supports 0x for hexa & 0 for octal notation. … … 157 157 * @return Converted number or 0 if no valid number ofund 158 158 */ 159 __nativeatoi(const char *text)159 unative_t atoi(const char *text) 160 160 { 161 161 int base = 10; 162 __nativeresult = 0;162 unative_t result = 0; 163 163 164 164 if (text[0] == '0' && text[1] == 'x') {
Note:
See TracChangeset
for help on using the changeset viewer.