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

Basic C question

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



Joined: 08 Sep 2003
Posts: 105
Location: New Castle, DE

View user's profile Send private message

Basic C question
PostPosted: Fri Aug 08, 2008 12:03 pm     Reply with quote

I ran across this line of code.
Code:
if(in->holdTime <0>value != newValue){



What is this “<0>”?

What is "value" is this a variable.

The code is in this post at the end.

http://www.ccsinfo.com/forum/viewtopic.php?t=30102&highlight=debouce

Tom
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 08, 2008 12:16 pm     Reply with quote

That code is messed up. It's not real code. For a period of time, the
forum software had "HTML enabled" for all posts. This meant that
any code surrounded by angle brackets was interpreted as HTML and
was displayed as garbled code. The forum "regulars" usually warned
people about this, but some bad posts were still made. There used to be
a tickbox below the posting window, where you could enable/disable HTML.

Eventually, several months ago, the forum admin globally disabled
HTML and the problem went away. However, the old posts with the
garbled code still remain in the archives.
Tom-H-PIC



Joined: 08 Sep 2003
Posts: 105
Location: New Castle, DE

View user's profile Send private message

What was the line?
PostPosted: Tue Aug 12, 2008 9:49 am     Reply with quote

My question is what is this line to read.
Code:
Code:
if(in->holdTime <0>value != newValue){ // change has occured


This?
Code:
Code:
if(in->holdTime < in->value != newValue){ // change has occured



Tom
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 12, 2008 12:16 pm     Reply with quote

Go to that thread. The person who posted that code has an email
address listed in the side buttons. Ask him about it.

I advise, don't email him a link to the code because links add spam
points. Just email him the code. Then it might get through his
spam filter.
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