The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: Clarify me.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-05-2008
jim mcnamara jim mcnamara is offline
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,465
Some shops require that code pass lint with no warnings. fprintf returns n int. If you do not need/want to check the return value, cast it to void. Then lint will not complain about it. And code reviewers will know that you are aware of the consequences. HPUX man page examples often have this.
Reply With Quote