title: sending parameters to a function according to input
body: <p>I have a simple typedef (typedef int set [4]) and creations of it.
  I have a function that gets 3 of this typedef as parameters.</p>
  
  <p>Now, I want the function to be called with parameters according to the input.
  For example, if the input is A,D,R (assume those are allready created), so the the function will be called as func(A,D,R).</p>
  
  <p>I have tried using swich to match the char, and then send the apropriate parameter, but it gets too messy, I tried some other thing aswell but I could not relate between the input and the object name.</p>
  
  <p>I write it in C by the way.
  Any help would be apreciated</p>