Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.




List of 6 messages in thread
TopicAuthorDate
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      

Back to Subject List