title: How to make printf work when it is in a separate c file that is called from an s-function?
body: <p>I have an s-function in file mySFun.c that calls a function foo() which is implemeted in a separate file myFoo.c. When I write printf statements inside the mdlOutput function in mySFun.c, they work fine. But when I put printf inside function foo() in myFoo.c they don't show their output in command window.</p>
  
  <p>How can I enable printf functionality when printf is inside another file that is called from an s-function?</p>