CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

sting as int. ds1307 problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Markdem



Joined: 24 Jun 2005
Posts: 206

View user's profile Send private message Send e-mail

sting as int. ds1307 problem
PostPosted: Sun Jan 01, 2006 9:39 pm     Reply with quote

Hi All, i am tring to set the time on a ds1307 using a vb app i have made. The only problem here is i dont know much about c or vb :(

Anyway, the problem is that the vb app is sending rs232 data as a string, but i need a int to set the time and date. Am i right in saying this is a type casting problem??

Does anyone have any ideas on how i should do this?

Thank you very much
Markdem



Joined: 24 Jun 2005
Posts: 206

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 01, 2006 10:08 pm     Reply with quote

Hi All again, i might add alli really want to know is how change the recived data froma string to a int. Right now, when i recive the data as a int, i will get the ascii codes for the numbers, eg 1 = 48. I need the pic just to save the number i am sending

Thanks
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Jan 01, 2006 10:27 pm     Reply with quote

Take a look at ATOI() on page 90 of the latest manual.
Markdem



Joined: 24 Jun 2005
Posts: 206

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 01, 2006 10:46 pm     Reply with quote

Thank you very much dyeatman, that work Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group