title: c++ member function name ambiguous with standard c library
body: <p>The following is my sample code</p>
  
  <p>in member function <code>foo()</code> which needs to use the standard c library's <code>exit()</code> to terminate
  the process, but it has ambiguous naming error with the member function <code>int CFoo::exit(void)</code> at compiling time.</p>
  
  <p>Is anyway can avoid this problem?</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  
  class CFoo
  {
  
  public:
  
      void foo(void)
      {
          exit(0); // needs to use standard libc to exit process
      }
  
      void exit(void)
      {
          printf("exit\n");
      }
  };
  
  int main()
  {
  
      CFoo obj;
  
      obj.foo();
  }
  </code></pre>