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 13:44
Read: times


 
#62338 - Convert string to integer
Hi all,
I have a function that receive a string and convert it to integer. The function looks as follow:
uint str2dec(uchar* str, uchar len)
When I call this function I check if returned value is legal. To protect against cases where sent value (in string type) is grater then integer (65535) can someone know how can I detect numbers grater then integer?

Thanks a lot,
Roberto

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