Added output parameter support for mock_c

@basvodde This one is also easy.