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 CCS Technical Support

ccs gets function (Time Out)

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



Joined: 18 Jul 2012
Posts: 14

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

ccs gets function (Time Out)
PostPosted: Fri Jul 03, 2015 2:18 pm     Reply with quote

Hi all,

I was wondering if there is any timeout in case of using gets function and for some reason the device don't receive CR character.
Is there any way to assure that if CR was not delivered application return to main program??


Thanks In Advance
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 03, 2015 2:35 pm     Reply with quote

Download the manual for your CCS compiler:
http://www.ccsinfo.com/downloads.php#manuals
Go to the section on: #use rs232

Look at the three pages of options for that statement. Find the parameter
for getc timeout.
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