Default values on arguments in C functions and function overloading in C

前端 未结 9 2103
再見小時候
再見小時候 2020-12-09 09:46

Converting a C++ lib to ANSI C and it seems like though ANSI C doesn\'t support default values for function variables or am I mistaken? What I want is something like

9条回答
  •  孤城傲影
    2020-12-09 10:09

    You'll have to declare each C++ overloaded function differently in C because C doesn't do name mangling. In your case "foo_property1" "foo_property2".

提交回复
热议问题