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 15:37
Read: times


 
#62343 - RE: Convert string to integer
Responding to: ???'s previous message
One way is to write your C program wherein the subroutine converts the string into an unsigned long variable. Then the comparison to check the result can look like if(var <= 65535L) . If the comparison shows a valid value you can then move a copy of the unsigned long variable to the unsigned int working variable.

Michael Karas


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