Function overloading in C

Posted by Andrei Ciobanu on Stack Overflow See other posts from Stack Overflow or by Andrei Ciobanu
Published on 2010-04-21T19:23:57Z Indexed on 2010/04/21 19:33 UTC
Read the original article Hit count: 241

Filed under:
|
|

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

   int open(const char *pathname, int flags);
   int open(const char *pathname, int flags, mode_t mode);

I didn't thought it's possible on C. What's the 'trick' for achieving this ?

© Stack Overflow or respective owner

Related posts about c

    Related posts about function-overloading