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

how can i pass a PIN as parameter of functions ?

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



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

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

how can i pass a PIN as parameter of functions ?
PostPosted: Fri Apr 07, 2006 8:52 pm     Reply with quote

hello everybody..
im trying to pass a pin as parameter of a function but it is not working..

the part of code is:

Code:


boolean LeTecla (const Pino)
{
   int EsperaTecla = 50;
   boolean EsperaFlag = FALSE;

   while (! input (Pino))
   {
      EsperaTecla--;

      if (! EsperaTecla)
      {
         EsperaFlag = TRUE;
         break;
      }

      else EsperaFlag = FALSE;
   }

   return EsperaFlag;

}


that time ive tried with const type, but i already tried with int, char, unsigned int, unsigned char.. and all those types didnt work.

somebody help me.

regards.

Andre
_________________
Andre
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 07, 2006 8:57 pm     Reply with quote

Quote:
im trying to pass a pin as parameter of a function but it is not working..

http://www.ccsinfo.com/forum/viewtopic.php?t=25280&start=4
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

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

PostPosted: Fri Apr 07, 2006 9:01 pm     Reply with quote

thanks PCM Programmer,
you help me a lot

regards.

Andr�.
_________________
Andre
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

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

PostPosted: Fri Apr 07, 2006 9:11 pm     Reply with quote

there�s a way to use the value passed (pin value) with input our output built in functions ????


regards.



Andr�
_________________
Andre
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