title: Can gmock be used for stubbing C functions?
body: <p>I am new to gmock, so I want to know how can I stub simple C function called in a function under test for Unit Testing.</p>
  
  <p>Example:</p>
  
  <pre><code>int func(int a)
  {
    boolean find;
    // Some code
    find = func_1();
    return find;
  }
  </code></pre>
  
  <p>I have searched about gmock and in my understanding gmock does not provide functionality to stub simple C functions, therefore I want to ask does gmock provides functionality to mock or stub <code>func_1</code>?</p>
  
  <p>If not how can I stub <code>func_1</code> manually in my test code without changing source code? I am using google test framework for unit testing.</p>
  
  <p>Thanks.</p>