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

macro substitution

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



Joined: 24 Aug 2016
Posts: 1

View user's profile Send private message

macro substitution
PostPosted: Wed Aug 24, 2016 10:04 am     Reply with quote

Good afternoon, in ccs is there any command that I can take the contents of the variable through the passed name ?
Example:
Code:

main ()
{
    char variable [] = "test" // name received through the serial

    char name [] = "bia";
    char test [] = "souza";

   printf ("%s", test); // Retrieve the value of the variable test

}

like macro substitution.
thank you so much
Ttelmah



Joined: 11 Mar 2010
Posts: 19550

View user's profile Send private message

PostPosted: Wed Aug 24, 2016 3:11 pm     Reply with quote

You'd just have to have the names and replies both stored, and do a string search for the name.
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