function overloading in C

Posted by FL4SOF on Stack Overflow See other posts from Stack Overflow or by FL4SOF
Published on 2009-01-26T09:20:35Z Indexed on 2010/03/20 10:11 UTC
Read the original article Hit count: 426

Filed under:
|
|

Is there any way to achieve function overloading in C? I am looking at simple functions to be overloaded like

foo (int a)  
foo (char b)  
foo (float c , int d)

I think there is no straight forward way, looking for workarounds if any?

© Stack Overflow or respective owner

Related posts about c

    Related posts about function