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

Search found 2 matches
CCS Forum Index
Author Message
  Topic: Passing a string array to a function
ivaneduardo747

Replies: 1
Views: 3729

PostForum: General CCS C Discussion   Posted: Sat Feb 05, 2011 3:36 pm   Subject: Passing a string array to a function
How can I pass a string array like:

const char colors[] [*] = {"Red", "Green", "Blue"};



Into a function? How the syntax would be lik ...
  Topic: Array of functions? Avoiding if's for calling routines
ivaneduardo747

Replies: 2
Views: 3757

PostForum: General CCS C Discussion   Posted: Fri Dec 03, 2010 2:11 pm   Subject: Array of functions? Avoiding if's for calling routines
Hello, I'm coding a program that receives a value CMD from the UART (along with other things). I want to call functions depending on the value of CMD. Right now I'm using this:

if (CMD==0) ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group