Function overloading in C

前端 未结 5 1966
花落未央
花落未央 2020-12-10 01:23

Today, looking at the man page for open(), I\'ve noticed this function is \'overloaded\':

   int open(const char *pathname, int flags);
   int o         


        
5条回答
  •  情话喂你
    2020-12-10 01:41

    you can fake it using variable arguments list with ...

    int function(int x, ...);
    

提交回复
热议问题