AnsweredAssumed Answered

having functions of type Union

Question asked by Mark Grillo on Dec 20, 2013
Latest reply on Dec 20, 2013 by Mark Grillo

Hello,

 

With IAR I was able to typedef a variable as a union then create a function of that type variable so the return on the function would be used with the features I had in the union. CW10 is not liking this. I'm getting a "declaration syntax error". I can not find any documentation that states a function can NOT be of type Union in C and why has IAR allowed this as valid syntax and executes correctly?

 

Regards,

Mark

Outcomes