title: CUnit - 'Mocking' libc functions
body: <p>I'm using CUnit for my project unit testing.
  I need to test whether I call libc functions with the right parameters &amp; whether I treat their return values the right way.
  for example: if I call the bind(...) function - I would like to check which af param I pass &amp; assert if this is the wrong one, and also I would like to emulate it's return value &amp; assert if I check it the right way.</p>
  
  <p>For these purposes I would expect the CUnit environment to have a built-in mechanism to let me call a 'mocked' bind() function while testing and a real bind() function when running the code - but I can't find anything like this.</p>
  
  <p>Can you please tell me if I'm missing something in CUnit, or maybe suggest a way to implement this.</p>
  
  <p>Thanks,
  Jo.</p>