| ??? 01/11/04 22:51 Read: times |
#62374 - RE: Convert string to integer Responding to: ???'s previous message |
P.S. The function (str2dec) return unsigned integer, and I need to keep it like this. Then have the function use an unsigned long internally to check whether the value exceeds 65535. The size of the function's internal work variable is independent of its return value size, so the function can still return an unsigned integer, although there wouldn't be any means for the caller to know whether the conversion overflowed unless you pass another pointer parameter for the function to return an error indication through. |
| Topic | Author | Date |
| Convert string to integer | 01/01/70 00:00 | |
| RE: Convert string to integer | 01/01/70 00:00 | |
| RE: Convert string to integer | 01/01/70 00:00 | |
| RE: Convert string to integer | 01/01/70 00:00 | |
| RE: Convert string to integer | 01/01/70 00:00 | |
RE: Convert string to integer | 01/01/70 00:00 |



