title: Call libc function from JNA
body: <p>I use a C library from Java through JNA and one function does not flush properly (since the output appear all at once on program end). I have tried Java side <code>System.out.flush();</code> with no luck.</p>
  
  <p>In brief, I would like to call C <code>fflush(stdout)</code> from Java. With JNA already there (thus would prefer if no additional library) and without C to write.</p>
  
  <p>I am aware of JNA Library mapping as in <a href="https://stackoverflow.com/questions/16296566/">this question</a> but that seems overkill to me.</p>