title: How can we know the caller function's name?
body: <p>In the C language, <code>__FUNCTION__</code> can be used to get the <strong><em>current</em></strong> function's name.
  But if I define a function named a() and it is called in b(), like below:</p>
  
  <pre><code>b()
  {
      a();
  }
  </code></pre>
  
  <p>Now, in the source code, there are lots of functions like b() that call a(), e.g. c(), d(), e()...</p>
  
  <p>Is it possible, within a(), to add some code to detect the name of the function that called a()?</p>
  
  <p><strong>Further:</strong></p>
  
  <ol>
  <li>Sorry for the misleading typo. I have corrected it.</li>
  <li>I am trying to find out which function calls a() for debugging purposes. I
  don't know how you do when in the same situation? </li>
  <li>And my code is under vxWorks, but I am not sure whether it is related to C99 or
  something else.</li>
  </ol>